]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/parser/removed-syntax-with-1.rs
Auto merge of #57714 - matthewjasper:wellformed-unreachable, r=pnkfelix
[rust.git] / src / test / ui / parser / removed-syntax-with-1.rs
index 57cbe8d5be655c735e3aed2d772b8feb495859b0..2c1e152dcee750ceb10b086d0428453405c048e1 100644 (file)
@@ -5,7 +5,6 @@ struct S {
     }
 
     let a = S { foo: (), bar: () };
-    let b = S { foo: () with a };
+    let b = S { foo: () with a, bar: () };
     //~^ ERROR expected one of `,`, `.`, `?`, `}`, or an operator, found `with`
-    //~| ERROR missing field `bar` in initializer of `main::S`
 }