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

25 lines
597 B
Plaintext
Raw Normal View History

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