]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/invalid-self-argument/trait-fn.rs
improve error note
[rust.git] / src / test / ui / invalid-self-argument / trait-fn.rs
index e2107e4d8676dc4ebc3d5be6aebe19e641b4c3a3..31e867bc7641f4f263374b28e4814a5a39c6b4ef 100644 (file)
@@ -3,7 +3,7 @@ struct Foo {}
 impl Foo {
     fn c(foo: u32, self) {}
     //~^ ERROR unexpected `self` argument in function
-    //~| NOTE `self` is only valid as the first argument of a trait function
+    //~| NOTE `self` is only valid as the first argument of an associated function
 
     fn good(&mut self, foo: u32) {}
 }