rust/tests/ui/pattern/usefulness/const-pat-ice.rs
2024-02-16 20:02:50 +00:00

12 lines
150 B
Rust

//@ check-pass
const FOO: &&&u32 = &&&42;
fn main() {
match unimplemented!() {
&&&42 => {},
FOO => {},
_ => {},
}
}