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