rust/src/test/ui/lint/lint-shorthand-field.stderr

25 lines
694 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error: the `x:` in this pattern is redundant
--> $DIR/lint-shorthand-field.rs:22:13
|
LL | x: x, //~ ERROR the `x:` in this pattern is redundant
| --^^
| |
| help: remove this
|
note: lint level defined here
--> $DIR/lint-shorthand-field.rs:12:9
|
LL | #![deny(non_shorthand_field_patterns)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: the `y:` in this pattern is redundant
--> $DIR/lint-shorthand-field.rs:23:13
|
LL | y: ref y, //~ ERROR the `y:` in this pattern is redundant
| --^^^^^^
| |
| help: remove this
error: aborting due to 2 previous errors