]> git.proxmox.com Git - rustc.git/blob - src/test/ui/consts/match_ice.rs
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / consts / match_ice.rs
1 // https://github.com/rust-lang/rust/issues/53708
2
3 struct S;
4
5 #[derive(PartialEq, Eq)]
6 struct T;
7
8 fn main() {
9 const C: &S = &S;
10 match C {
11 C => {}
12 //~^ ERROR must be annotated with `#[derive(PartialEq, Eq)]`
13 }
14 const K: &T = &T;
15 match K {
16 K => {}
17 }
18 }