]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/redundant_static_lifetimes.rs
Move MSRV tests into the lint specific test files
[rust.git] / tests / ui / redundant_static_lifetimes.rs
index f2f0f78659c936516fab442fd624e1ba7f5164a0..bc5200bc8625b0a200e05035f2582f3dd2eab21d 100644 (file)
@@ -1,5 +1,6 @@
 // run-rustfix
 
+#![feature(custom_inner_attributes)]
 #![allow(unused)]
 
 #[derive(Debug)]
@@ -54,3 +55,15 @@ impl Foo {
 impl Bar for Foo {
     const TRAIT_VAR: &'static str = "foo";
 }
+
+fn msrv_1_16() {
+    #![clippy::msrv = "1.16"]
+
+    static V: &'static u8 = &16;
+}
+
+fn msrv_1_17() {
+    #![clippy::msrv = "1.17"]
+
+    static V: &'static u8 = &17;
+}