diff options
Diffstat (limited to 'src/test/ui/parser/removed-syntax-with-2.rs')
| -rw-r--r-- | src/test/ui/parser/removed-syntax-with-2.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/test/ui/parser/removed-syntax-with-2.rs b/src/test/ui/parser/removed-syntax-with-2.rs index 22b9ba2a41d..f666da49696 100644 --- a/src/test/ui/parser/removed-syntax-with-2.rs +++ b/src/test/ui/parser/removed-syntax-with-2.rs @@ -1,6 +1,4 @@ -// compile-flags: -Z parse-only - -fn removed_with() { +fn main() { struct S { foo: (), bar: (), @@ -9,4 +7,5 @@ fn removed_with() { let a = S { foo: (), bar: () }; let b = S { foo: (), with a }; //~^ ERROR expected one of `,` or `}`, found `a` + //~| ERROR missing field `bar` in initializer of `main::S` } |
