]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/rfc-2008-non-exhaustive/struct.rs
resolve: private fields in tuple struct ctor diag
[rust.git] / src / test / ui / rfc-2008-non-exhaustive / struct.rs
index 8cff35c4bc5ec1c3d7e49137e24ce7685785be17..07e093c152d6b153fdbf697797836c2852ddad9d 100644 (file)
@@ -18,7 +18,7 @@ fn main() {
     //~^ ERROR `..` required with struct marked as non-exhaustive
 
     let ts = TupleStruct(640, 480);
-    //~^ ERROR expected function, tuple struct or tuple variant, found struct `TupleStruct` [E0423]
+    //~^ ERROR cannot initialize a tuple struct which contains private fields [E0423]
 
     let ts_explicit = structs::TupleStruct(640, 480);
     //~^ ERROR tuple struct constructor `TupleStruct` is private [E0603]