]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/numbered_fields.stderr
Auto merge of #104889 - GuillaumeGomez:fix-impl-block-in-const-expr, r=notriddle
[rust.git] / src / tools / clippy / tests / ui / numbered_fields.stderr
1 error: used a field initializer for a tuple struct
2   --> $DIR/numbered_fields.rs:19:13
3    |
4 LL |       let _ = TupleStruct {
5    |  _____________^
6 LL | |         0: 1u32,
7 LL | |         1: 42,
8 LL | |         2: 23u8,
9 LL | |     };
10    | |_____^ help: try this instead: `TupleStruct(1u32, 42, 23u8)`
11    |
12    = note: `-D clippy::init-numbered-fields` implied by `-D warnings`
13
14 error: used a field initializer for a tuple struct
15   --> $DIR/numbered_fields.rs:26:13
16    |
17 LL |       let _ = TupleStruct {
18    |  _____________^
19 LL | |         0: 1u32,
20 LL | |         2: 2u8,
21 LL | |         1: 3u32,
22 LL | |     };
23    | |_____^ help: try this instead: `TupleStruct(1u32, 3u32, 2u8)`
24
25 error: aborting due to 2 previous errors
26