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