summaryrefslogtreecommitdiffstats
path: root/tests/ui/pattern/usefulness/match-non-exhaustive.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/pattern/usefulness/match-non-exhaustive.rs')
-rw-r--r--tests/ui/pattern/usefulness/match-non-exhaustive.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ui/pattern/usefulness/match-non-exhaustive.rs b/tests/ui/pattern/usefulness/match-non-exhaustive.rs
index 3b210a115..62c185d04 100644
--- a/tests/ui/pattern/usefulness/match-non-exhaustive.rs
+++ b/tests/ui/pattern/usefulness/match-non-exhaustive.rs
@@ -1,4 +1,5 @@
fn main() {
match 0 { 1 => () } //~ ERROR non-exhaustive patterns
match 0 { 0 if false => () } //~ ERROR non-exhaustive patterns
+ //-| NOTE match arms with guards don't count towards exhaustivity
}