rust/tests/ui/pattern/usefulness/const-pat-ice.rs

12 lines
149 B
Rust
Raw Normal View History

// check-pass
2018-12-13 05:54:49 -06:00
const FOO: &&&u32 = &&&42;
fn main() {
match unimplemented!() {
&&&42 => {},
FOO => {},
_ => {},
}
}