]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/needless_arbitrary_self_type_unfixable.rs
Auto merge of #9684 - kraktus:ref_option_ref, r=xFrednet
[rust.git] / tests / ui / needless_arbitrary_self_type_unfixable.rs
index a39d96109f17d8d03e38c4701cc4345d1e51ed30..02b43cce2bd4c5b77a46ee1d73088f83ad8732ca 100644 (file)
@@ -14,7 +14,7 @@ trait T1 {
                 fn test(self: &Self);
             }
 
-            struct S1 {}
+            struct S1;
 
             impl T1 for S1 {
                 fn test(self: &Self) {}
@@ -32,12 +32,13 @@ trait T2 {
         fn call_with_mut_self(&mut self);
     }
 
-    struct S2 {}
+    struct S2;
 
     // The method's signature will be expanded to:
     //  fn call_with_mut_self<'life0>(self: &'life0 mut Self) {}
     #[rename_my_lifetimes]
     impl T2 for S2 {
+        #[allow(clippy::needless_lifetimes)]
         fn call_with_mut_self(self: &mut Self) {}
     }
 }