]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/removed-syntax-with-2.stderr
Account for ADT bodies and struct expressions
[rust.git] / src / test / ui / parser / removed-syntax-with-2.stderr
1 error: expected one of `,`, `:`, or `}`, found `a`
2   --> $DIR/removed-syntax-with-2.rs:8:31
3    |
4 LL |     let b = S { foo: (), with a };
5    |             -                 ^ expected one of `,`, `:`, or `}`
6    |             |
7    |             while parsing this struct
8
9 error[E0063]: missing field `bar` in initializer of `S`
10   --> $DIR/removed-syntax-with-2.rs:8:13
11    |
12 LL |     let b = S { foo: (), with a };
13    |             ^ missing `bar`
14
15 error: aborting due to 2 previous errors
16
17 For more information about this error, try `rustc --explain E0063`.