2018-10-20 23:36:17 +03:00
|
|
|
error: expected `,`
|
2019-01-06 18:33:05 +03:00
|
|
|
--> $DIR/bind-struct-early-modifiers.rs:4:19
|
2018-10-20 23:36:17 +03:00
|
|
|
|
|
|
|
|
LL | Foo { ref x: ref x } => {}, //~ ERROR expected `,`
|
|
|
|
| ^
|
|
|
|
|
2019-01-06 18:33:05 +03:00
|
|
|
error[E0027]: pattern does not mention field `x`
|
|
|
|
--> $DIR/bind-struct-early-modifiers.rs:4:9
|
|
|
|
|
|
|
|
|
LL | Foo { ref x: ref x } => {}, //~ ERROR expected `,`
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ missing field `x`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2018-10-20 23:36:17 +03:00
|
|
|
|
2019-01-06 18:33:05 +03:00
|
|
|
For more information about this error, try `rustc --explain E0027`.
|