rust/src/test/ui/parser/removed-syntax-with-2.stderr

27 lines
871 B
Plaintext
Raw Normal View History

2018-10-20 15:36:17 -05:00
error: expected one of `,` or `}`, found `a`
--> $DIR/removed-syntax-with-2.rs:8:31
2018-10-20 15:36:17 -05:00
|
LL | let b = S { foo: (), with a };
| - ^ expected one of `,` or `}` here
| |
| while parsing this struct
2018-10-20 15:36:17 -05:00
error[E0425]: cannot find value `with` in this scope
--> $DIR/removed-syntax-with-2.rs:8:26
|
LL | let b = S { foo: (), with a };
| ^^^^ not found in this scope
error[E0560]: struct `main::S` has no field named `with`
--> $DIR/removed-syntax-with-2.rs:8:26
|
LL | let b = S { foo: (), with a };
| ^^^^ `main::S` does not have this field
|
= note: available fields are: `foo`, `bar`
error: aborting due to 3 previous errors
2018-10-20 15:36:17 -05:00
Some errors occurred: E0425, E0560.
For more information about an error, try `rustc --explain E0425`.