]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/redundant_clone.fixed
Move MSRV tests into the lint specific test files
[rust.git] / tests / ui / redundant_clone.fixed
index 16b40dcd902869d7184cb1d6b384139166d04380..00b427450935d5077a7ff947a78da65c5221ef2b 100644 (file)
@@ -1,7 +1,8 @@
 // run-rustfix
 // rustfix-only-machine-applicable
+#![feature(lint_reasons)]
+#![allow(clippy::drop_non_drop, clippy::implicit_clone, clippy::uninlined_format_args)]
 
-#![allow(clippy::implicit_clone)]
 use std::ffi::OsString;
 use std::path::Path;
 
@@ -29,6 +30,10 @@ fn main() {
     #[allow(clippy::redundant_clone)]
     let _s = String::new().to_string();
 
+    // Check that lint level works
+    #[expect(clippy::redundant_clone)]
+    let _s = String::new().to_string();
+
     let tup = (String::from("foo"),);
     let _t = tup.0;