]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/lint-shorthand-field.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / lint / lint-shorthand-field.stderr
1 error: the `x:` in this pattern is redundant
2   --> $DIR/lint-shorthand-field.rs:22:13
3    |
4 LL |             x: x, //~ ERROR the `x:` in this pattern is redundant
5    |             --^^
6    |             |
7    |             help: remove this
8    |
9 note: lint level defined here
10   --> $DIR/lint-shorthand-field.rs:12:9
11    |
12 LL | #![deny(non_shorthand_field_patterns)]
13    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14
15 error: the `y:` in this pattern is redundant
16   --> $DIR/lint-shorthand-field.rs:23:13
17    |
18 LL |             y: ref y, //~ ERROR the `y:` in this pattern is redundant
19    |             --^^^^^^
20    |             |
21    |             help: remove this
22
23 error: aborting due to 2 previous errors
24