1
Fork 0
rust/src/test/ui/parser/removed-syntax-with-1.stderr

18 lines
616 B
Text
Raw Normal View History

2018-10-20 23:36:17 +03:00
error: expected one of `,`, `.`, `?`, `}`, or an operator, found `with`
--> $DIR/removed-syntax-with-1.rs:8:25
2018-10-20 23:36:17 +03:00
|
LL | let b = S { foo: () with a };
| - ^^^^ expected one of `,`, `.`, `?`, `}`, or an operator here
| |
| while parsing this struct
2018-10-20 23:36:17 +03:00
2019-01-20 15:16:36 -08:00
error[E0063]: missing fields `bar`, `foo` in initializer of `main::S`
--> $DIR/removed-syntax-with-1.rs:8:13
|
LL | let b = S { foo: () with a };
2019-01-20 15:16:36 -08:00
| ^ missing `bar`, `foo`
error: aborting due to 2 previous errors
2018-10-20 23:36:17 +03:00
For more information about this error, try `rustc --explain E0063`.