]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/parser/removed-syntax-with-1.rs
Stabilize `param_attrs` in Rust 1.39.0
[rust.git] / src / test / ui / parser / removed-syntax-with-1.rs
index add024ea3907f8f3992f41f0b342cb076eee2da8..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 fields `bar`, `foo` in initializer of `main::S`
 }