mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
11 lines
223 B
Rust
11 lines
223 B
Rust
struct S(u8, u16);
|
|
|
|
fn main() {
|
|
let s = S{0b1: 10, 0: 11};
|
|
//~^ ERROR struct `S` has no field named `0b1`
|
|
match s {
|
|
S{0: a, 0x1: b, ..} => {}
|
|
//~^ ERROR does not have a field named `0x1`
|
|
}
|
|
}
|