2016-07-29 15:47:55 -05:00
|
|
|
struct S(u8, u16);
|
|
|
|
|
|
|
|
fn main() {
|
2016-09-15 23:10:32 -05:00
|
|
|
let s = S{0b1: 10, 0: 11};
|
|
|
|
//~^ ERROR struct `S` has no field named `0b1`
|
2016-07-29 15:47:55 -05:00
|
|
|
match s {
|
2016-09-15 23:10:32 -05:00
|
|
|
S{0: a, 0x1: b, ..} => {}
|
|
|
|
//~^ ERROR does not have a field named `0x1`
|
2016-07-29 15:47:55 -05:00
|
|
|
}
|
|
|
|
}
|