fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
695 B21 linesraw
1error[E0560]: struct `S` has no field named `0b1`
2  --> $DIR/numeric-fields.rs:4:15
3   |
4LL | struct S(u8, u16);
5   |        - `S` defined here
6...
7LL |     let s = S{0b1: 10, 0: 11};
8   |             - ^^^ field does not exist
9   |             |
10   |             `S` is a tuple struct, use the appropriate syntax: `S(/* fields */)`
11
12error[E0026]: struct `S` does not have a field named `0x1`
13  --> $DIR/numeric-fields.rs:7:17
14   |
15LL |         S{0: a, 0x1: b, ..} => {}
16   |                 ^^^ struct `S` does not have this field
17
18error: aborting due to 2 previous errors
19
20Some errors have detailed explanations: E0026, E0560.
21For more information about an error, try `rustc --explain E0026`.