]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/privacy/legacy-ctor-visibility.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / privacy / legacy-ctor-visibility.rs
index 7db4be729e8fa28fb786cbed5548ca473114615e..5732b6446fea8e1b43b0d3af268ac576a738c292 100644 (file)
@@ -1,7 +1,3 @@
-// ignore-tidy-linelength
-
-#![allow(unused)]
-
 use m::S;
 
 mod m {
@@ -11,8 +7,7 @@ mod m {
         use S;
         fn f() {
             S(10);
-            //~^ ERROR private struct constructors are not usable through re-exports in outer modules
-            //~| WARN this was previously accepted
+            //~^ ERROR expected function, tuple struct or tuple variant, found struct `S`
         }
     }
 }