]> git.proxmox.com Git - rustc.git/blob - src/test/ui/consts/const_in_pattern/issue-78057.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / consts / const_in_pattern / issue-78057.rs
1 #![deny(unreachable_patterns)]
2
3 #[derive(PartialEq)]
4 struct Opaque(i32);
5
6 impl Eq for Opaque {}
7
8 const FOO: Opaque = Opaque(42);
9
10 fn main() {
11 match FOO {
12 FOO => {},
13 //~^ ERROR must be annotated with `#[derive(PartialEq, Eq)]`
14 _ => {}
15 //~^ ERROR unreachable pattern
16 }
17 }