fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
771 B27 linesraw
1error: used a field initializer for a tuple struct
2  --> $DIR/numbered_fields.rs:18:13
3   |
4LL |       let _ = TupleStruct {
5   |  _____________^
6LL | |         0: 1u32,
7LL | |         1: 42,
8LL | |         2: 23u8,
9LL | |     };
10   | |_____^ help: try: `TupleStruct(1u32, 42, 23u8)`
11   |
12   = note: `-D clippy::init-numbered-fields` implied by `-D warnings`
13   = help: to override `-D warnings` add `#[allow(clippy::init_numbered_fields)]`
14
15error: used a field initializer for a tuple struct
16  --> $DIR/numbered_fields.rs:25:13
17   |
18LL |       let _ = TupleStruct {
19   |  _____________^
20LL | |         0: 1u32,
21LL | |         2: 2u8,
22LL | |         1: 3u32,
23LL | |     };
24   | |_____^ help: try: `TupleStruct(1u32, 3u32, 2u8)`
25
26error: aborting due to 2 previous errors
27