]> git.lizzy.rs Git - rust.git/blob - src/test/ui/numeric/numeric-fields.rs
Auto merge of #81507 - weiznich:add_diesel_to_cargo_test, r=Mark-Simulacrum
[rust.git] / src / test / ui / numeric / numeric-fields.rs
1 struct S(u8, u16);
2
3 fn main() {
4     let s = S{0b1: 10, 0: 11};
5     //~^ ERROR struct `S` has no field named `0b1`
6     match s {
7         S{0: a, 0x1: b, ..} => {}
8         //~^ ERROR does not have a field named `0x1`
9     }
10 }