]> git.proxmox.com Git - rustc.git/blobdiff - src/tools/clippy/tests/ui/wrong_self_convention2.rs
New upstream version 1.74.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / wrong_self_convention2.rs
index 0dcf4743e8b8dbcd1186b794a9f2846a763a2da2..44b70f877be4dac43e57a0501483ff2efa8c3af4 100644 (file)
@@ -52,6 +52,7 @@ mod issue7179 {
 
         // lint
         pub fn from_be_self(self) -> Self {
+            //~^ ERROR: methods called `from_*` usually take no `self`
             S(i32::from_be(self.0))
         }
     }
@@ -61,6 +62,7 @@ mod issue7179 {
         fn from_be(s: Self) -> Self;
         // lint
         fn from_be_self(self) -> Self;
+        //~^ ERROR: methods called `from_*` usually take no `self`
     }
 
     trait Foo: Sized {