]> git.proxmox.com Git - rustc.git/blame - src/test/ui/numeric/numeric-fields.stderr
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / ui / numeric / numeric-fields.stderr
CommitLineData
ff7c6d11 1error[E0560]: struct `S` has no field named `0b1`
0731742a 2 --> $DIR/numeric-fields.rs:4:15
ff7c6d11 3 |
dc9dc135
XL
4LL | struct S(u8, u16);
5 | - `S` defined here
6...
0531ce1d 7LL | 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
12error[E0026]: struct `S` does not have a field named `0x1`
0731742a 13 --> $DIR/numeric-fields.rs:7:17
ff7c6d11 14 |
0531ce1d 15LL | S{0: a, 0x1: b, ..} => {}
532ac7d7 16 | ^^^ struct `S` does not have this field
ff7c6d11
XL
17
18error: aborting due to 2 previous errors
19
48663c56 20Some errors have detailed explanations: E0026, E0560.
0531ce1d 21For more information about an error, try `rustc --explain E0026`.