rust/src/test/ui/consts/match_ice.rs

11 lines
227 B
Rust
Raw Normal View History

2019-01-14 16:54:00 +00:00
// https://github.com/rust-lang/rust/issues/53708
struct S;
fn main() {
const C: &S = &S;
2019-01-14 18:51:00 +00:00
match C { //~ ERROR non-exhaustive
C => {} // this is a common bug around constants and references in patterns
2019-01-14 16:54:00 +00:00
}
}