]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/match_ice.rs
Rollup merge of #106962 - compiler-errors:use-sugg-span, r=oli-obk
[rust.git] / tests / 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 }