]> git.lizzy.rs Git - rust.git/blob - tests/ui/min_rust_version_no_patch.rs
Merge commit 'c1664c50b27a51f7a78c93ba65558e7c33eabee6' into clippyup
[rust.git] / tests / ui / min_rust_version_no_patch.rs
1 #![allow(clippy::redundant_clone)]
2 #![feature(custom_inner_attributes)]
3 #![clippy::msrv = "1.0"]
4
5 fn manual_strip_msrv() {
6     let s = "hello, world!";
7     if s.starts_with("hello, ") {
8         assert_eq!(s["hello, ".len()..].to_uppercase(), "WORLD!");
9     }
10 }
11
12 fn main() {
13     manual_strip_msrv()
14 }