]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/wrong_self_convention2.rs
Move MSRV tests into the lint specific test files
[rust.git] / tests / ui / wrong_self_convention2.rs
index 0d827c1feb3e722c4842684a441f6386ee2f2eb5..0dcf4743e8b8dbcd1186b794a9f2846a763a2da2 100644 (file)
@@ -1,4 +1,3 @@
-// edition:2018
 #![warn(clippy::wrong_self_convention)]
 #![allow(dead_code)]
 
@@ -105,3 +104,13 @@ pub fn to_mut(self: Pin<&mut Self>) {}
         pub fn to_other_thingy(self: Pin<&Self>) {}
     }
 }
+
+mod issue_8480_8513 {
+    struct Cat(String);
+
+    impl Cat {
+        fn is_animal(&mut self) -> bool {
+            todo!();
+        }
+    }
+}