X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;ds=sidebyside;f=src%2Ftest%2Fui%2Fparser%2Fremoved-syntax-with-1.rs;h=2c1e152dcee750ceb10b086d0428453405c048e1;hb=0b1669d96cee9dec9035a50fdf0a967a68605f98;hp=57cbe8d5be655c735e3aed2d772b8feb495859b0;hpb=d22fa2d87d03d19fdb1359faab9ec5e74eff26b3;p=rust.git diff --git a/src/test/ui/parser/removed-syntax-with-1.rs b/src/test/ui/parser/removed-syntax-with-1.rs index 57cbe8d5be6..2c1e152dcee 100644 --- a/src/test/ui/parser/removed-syntax-with-1.rs +++ b/src/test/ui/parser/removed-syntax-with-1.rs @@ -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` }