blob: 53c5782a4c70e53d8b0c3854c8be8476126f0f27 (
plain)
1
2
3
4
5
6
7
8
9
10
|
// https://github.com/rust-lang/rust/issues/53708
struct S;
fn main() {
const C: &S = &S;
match C { //~ ERROR non-exhaustive
C => {} // this is a common bug around constants and references in patterns
}
}
|