]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/min_rust_version_no_patch.rs
Rollup merge of #100462 - zohnannor:master, r=thomcc
[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 }