diff options
Diffstat (limited to 'src/test/ui/pattern/usefulness/match-non-exhaustive.rs')
-rw-r--r-- | src/test/ui/pattern/usefulness/match-non-exhaustive.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/ui/pattern/usefulness/match-non-exhaustive.rs b/src/test/ui/pattern/usefulness/match-non-exhaustive.rs new file mode 100644 index 000000000..3b210a115 --- /dev/null +++ b/src/test/ui/pattern/usefulness/match-non-exhaustive.rs @@ -0,0 +1,4 @@ +fn main() { + match 0 { 1 => () } //~ ERROR non-exhaustive patterns + match 0 { 0 if false => () } //~ ERROR non-exhaustive patterns +} |