diff options
Diffstat (limited to 'src/test/ui/pattern/usefulness/issue-65413-constants-and-slices-exhaustiveness.rs')
-rw-r--r-- | src/test/ui/pattern/usefulness/issue-65413-constants-and-slices-exhaustiveness.rs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/test/ui/pattern/usefulness/issue-65413-constants-and-slices-exhaustiveness.rs b/src/test/ui/pattern/usefulness/issue-65413-constants-and-slices-exhaustiveness.rs deleted file mode 100644 index 54dfa889e..000000000 --- a/src/test/ui/pattern/usefulness/issue-65413-constants-and-slices-exhaustiveness.rs +++ /dev/null @@ -1,15 +0,0 @@ -// check-pass - -#![deny(unreachable_patterns)] - -const C0: &'static [u8] = b"\x00"; - -fn main() { - let x: &[u8] = &[0]; - match x { - &[] => {} - &[1..=255] => {} - C0 => {} - &[_, _, ..] => {} - } -} |