]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/lint-shorthand-field.stderr
Auto merge of #106884 - clubby789:fieldless-enum-debug, r=michaelwoerister
[rust.git] / tests / ui / lint / lint-shorthand-field.stderr
1 error: the `x:` in this pattern is redundant
2   --> $DIR/lint-shorthand-field.rs:14:13
3    |
4 LL |             x: x,
5    |             ^^^^ help: use shorthand field pattern: `x`
6    |
7 note: the lint level is defined here
8   --> $DIR/lint-shorthand-field.rs:4:9
9    |
10 LL | #![deny(non_shorthand_field_patterns)]
11    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
13 error: the `y:` in this pattern is redundant
14   --> $DIR/lint-shorthand-field.rs:15:13
15    |
16 LL |             y: ref y,
17    |             ^^^^^^^^ help: use shorthand field pattern: `ref y`
18
19 error: the `x:` in this pattern is redundant
20   --> $DIR/lint-shorthand-field.rs:65:13
21    |
22 LL |             x: mut x,
23    |             ^^^^^^^^ help: use shorthand field pattern: `mut x`
24
25 error: the `y:` in this pattern is redundant
26   --> $DIR/lint-shorthand-field.rs:66:13
27    |
28 LL |             y: ref y,
29    |             ^^^^^^^^ help: use shorthand field pattern: `ref y`
30
31 error: the `z:` in this pattern is redundant
32   --> $DIR/lint-shorthand-field.rs:67:13
33    |
34 LL |             z: ref mut z,
35    |             ^^^^^^^^^^^^ help: use shorthand field pattern: `ref mut z`
36
37 error: aborting due to 5 previous errors
38