]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/parser/removed-syntax-with-1.rs
Rollup merge of #57463 - phansch:fix_some_links, r=steveklabnik
[rust.git] / src / test / ui / parser / removed-syntax-with-1.rs
index a08baf622d4ee32d7d1e43a8c35c4a0828d2b983..57cbe8d5be655c735e3aed2d772b8feb495859b0 100644 (file)
@@ -1,6 +1,4 @@
-// compile-flags: -Z parse-only
-
-fn removed_with() {
+fn main() {
     struct S {
         foo: (),
         bar: (),
@@ -9,4 +7,5 @@ struct S {
     let a = S { foo: (), bar: () };
     let b = S { foo: () with a };
     //~^ ERROR expected one of `,`, `.`, `?`, `}`, or an operator, found `with`
+    //~| ERROR missing field `bar` in initializer of `main::S`
 }