]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/privacy/private-impl-method.rs
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / privacy / private-impl-method.rs
index b5587920f1cc9d0b86c735cbffe22544438f36bb..f7be6726c5eaa73d99d7fafcda4334c4afc06f9c 100644 (file)
@@ -17,5 +17,5 @@ fn f() {
 fn main() {
     let s = a::Foo { x: 1 };
     s.bar();
-    s.foo();    //~ ERROR method `foo` is private
+    s.foo();    //~ ERROR associated function `foo` is private
 }