blob: 98fffe1e3512b9c41750f598f0787ce56329eade (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#![allow(clippy::redundant_clone)]
#![feature(custom_inner_attributes)]
#![clippy::msrv = "1.0"]
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()
}
|