]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/static/static-method-privacy.rs
Rollup merge of #70038 - DutchGhost:const-forget-tests, r=RalfJung
[rust.git] / src / test / ui / static / static-method-privacy.rs
index b637037f60e8f6167e9a3a8c415d36cf4bd6cfc0..9ee59b320edcdd5727d87b3b7031246086e0145d 100644 (file)
@@ -6,5 +6,5 @@ fn new() -> S { S }
 }
 
 fn main() {
-    let _ = a::S::new();    //~ ERROR method `new` is private
+    let _ = a::S::new();    //~ ERROR associated function `new` is private
 }