2018-10-20 15:36:17 -05:00
|
|
|
error: expected one of `,` or `}`, found `a`
|
2019-01-06 09:33:05 -06:00
|
|
|
--> $DIR/removed-syntax-with-2.rs:8:31
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
|
|
|
LL | let b = S { foo: (), with a };
|
2019-01-20 02:37:06 -06:00
|
|
|
| - ^ expected one of `,` or `}` here
|
|
|
|
| |
|
|
|
|
| while parsing this struct
|
2018-10-20 15:36:17 -05:00
|
|
|
|
2019-01-06 09:33:05 -06: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
|
|
|
|
2019-01-06 09:33:05 -06:00
|
|
|
Some errors occurred: E0425, E0560.
|
|
|
|
For more information about an error, try `rustc --explain E0425`.
|