rust/tests/ui/binding/match-larger-const.rs
2023-01-11 09:32:08 +00:00

13 lines
178 B
Rust

// run-pass
#[derive(Eq, PartialEq)]
pub struct Data([u8; 4]);
const DATA: Data = Data([1, 2, 3, 4]);
fn main() {
match DATA {
DATA => (),
_ => (),
}
}