2020-10-21 07:47:34 -05:00
|
|
|
#![allow(clippy::redundant_clone)]
|
|
|
|
#![feature(custom_inner_attributes)]
|
2020-11-28 08:24:28 -06:00
|
|
|
#![clippy::msrv = "1.0"]
|
2020-10-21 07:47:34 -05:00
|
|
|
|
|
|
|
fn manual_strip_msrv() {
|
|
|
|
let s = "hello, world!";
|
|
|
|
if s.starts_with("hello, ") {
|
|
|
|
assert_eq!(s["hello, ".len()..].to_uppercase(), "WORLD!");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
manual_strip_msrv()
|
|
|
|
}
|