]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/redundant_field_names.stderr
New upstream version 1.74.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / redundant_field_names.stderr
CommitLineData
f20569fa 1error: redundant field names in struct initialization
781aab86 2 --> $DIR/redundant_field_names.rs:33:9
f20569fa
XL
3 |
4LL | gender: gender,
5 | ^^^^^^^^^^^^^^ help: replace it with: `gender`
6 |
7 = note: `-D clippy::redundant-field-names` implied by `-D warnings`
781aab86 8 = help: to override `-D warnings` add `#[allow(clippy::redundant_field_names)]`
f20569fa
XL
9
10error: redundant field names in struct initialization
781aab86 11 --> $DIR/redundant_field_names.rs:34:9
f20569fa
XL
12 |
13LL | age: age,
14 | ^^^^^^^^ help: replace it with: `age`
15
16error: redundant field names in struct initialization
781aab86 17 --> $DIR/redundant_field_names.rs:55:25
f20569fa
XL
18 |
19LL | let _ = RangeFrom { start: start };
20 | ^^^^^^^^^^^^ help: replace it with: `start`
21
22error: redundant field names in struct initialization
781aab86 23 --> $DIR/redundant_field_names.rs:56:23
f20569fa
XL
24 |
25LL | let _ = RangeTo { end: end };
26 | ^^^^^^^^ help: replace it with: `end`
27
28error: redundant field names in struct initialization
781aab86 29 --> $DIR/redundant_field_names.rs:57:21
f20569fa
XL
30 |
31LL | let _ = Range { start: start, end: end };
32 | ^^^^^^^^^^^^ help: replace it with: `start`
33
34error: redundant field names in struct initialization
781aab86 35 --> $DIR/redundant_field_names.rs:57:35
f20569fa
XL
36 |
37LL | let _ = Range { start: start, end: end };
38 | ^^^^^^^^ help: replace it with: `end`
39
40error: redundant field names in struct initialization
781aab86 41 --> $DIR/redundant_field_names.rs:59:32
f20569fa
XL
42 |
43LL | let _ = RangeToInclusive { end: end };
44 | ^^^^^^^^ help: replace it with: `end`
45
2b03887a 46error: redundant field names in struct initialization
781aab86 47 --> $DIR/redundant_field_names.rs:88:25
2b03887a
FG
48 |
49LL | let _ = RangeFrom { start: start };
50 | ^^^^^^^^^^^^ help: replace it with: `start`
51
52error: aborting due to 8 previous errors
f20569fa 53