]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/min_rust_version_no_patch.rs
Add 'library/portable-simd/' from commit '1ce1c645cf27c4acdefe6ec8a11d1f0491954a99'
[rust.git] / src / tools / clippy / 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 }