fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
597 B24 linesraw
1error: the `x:` in this pattern is redundant
2  --> $DIR/lint-shorthand-field.rs:12:13
3   |
4LL |             x: x,
5   |             --^^
6   |             |
7   |             help: remove this
8   |
9note: lint level defined here
10  --> $DIR/lint-shorthand-field.rs:2:9
11   |
12LL | #![deny(non_shorthand_field_patterns)]
13   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14
15error: the `y:` in this pattern is redundant
16  --> $DIR/lint-shorthand-field.rs:13:13
17   |
18LL |             y: ref y,
19   |             --^^^^^^
20   |             |
21   |             help: remove this
22
23error: aborting due to 2 previous errors
24