]> git.proxmox.com Git - rustc.git/blobdiff - src/tools/clippy/tests/ui/err_expect.fixed
New upstream version 1.67.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / err_expect.fixed
index 3bac738acd65b90412004d73e8719ed885b8c368..b63cbd8a8e6bde03c72dde203720fa44646f548f 100644 (file)
@@ -1,6 +1,5 @@
 // run-rustfix
 
-#![feature(custom_inner_attributes)]
 #![allow(unused)]
 
 struct MyTypeNonDebug;
@@ -16,16 +15,14 @@ fn main() {
     test_non_debug.err().expect("Testing non debug type");
 }
 
+#[clippy::msrv = "1.16"]
 fn msrv_1_16() {
-    #![clippy::msrv = "1.16"]
-
     let x: Result<u32, &str> = Ok(16);
     x.err().expect("16");
 }
 
+#[clippy::msrv = "1.17"]
 fn msrv_1_17() {
-    #![clippy::msrv = "1.17"]
-
     let x: Result<u32, &str> = Ok(17);
     x.expect_err("17");
 }