diff options
Diffstat (limited to 'src/test/ui/consts/const_in_pattern/issue-78057.rs')
-rw-r--r-- | src/test/ui/consts/const_in_pattern/issue-78057.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/test/ui/consts/const_in_pattern/issue-78057.rs b/src/test/ui/consts/const_in_pattern/issue-78057.rs deleted file mode 100644 index 69cf8404d..000000000 --- a/src/test/ui/consts/const_in_pattern/issue-78057.rs +++ /dev/null @@ -1,17 +0,0 @@ -#![deny(unreachable_patterns)] - -#[derive(PartialEq)] -struct Opaque(i32); - -impl Eq for Opaque {} - -const FOO: Opaque = Opaque(42); - -fn main() { - match FOO { - FOO => {}, - //~^ ERROR must be annotated with `#[derive(PartialEq, Eq)]` - _ => {} - //~^ ERROR unreachable pattern - } -} |