summaryrefslogtreecommitdiffstats
path: root/tests/ui/match/match_non_exhaustive.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/match/match_non_exhaustive.stderr')
-rw-r--r--tests/ui/match/match_non_exhaustive.stderr3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/ui/match/match_non_exhaustive.stderr b/tests/ui/match/match_non_exhaustive.stderr
index 46ee8d517..7b8bdfe00 100644
--- a/tests/ui/match/match_non_exhaustive.stderr
+++ b/tests/ui/match/match_non_exhaustive.stderr
@@ -45,7 +45,8 @@ note: `E2` defined here
|
LL | pub enum E2 { A, B }
| ^^^^^^^^^^^
- = note: the matched value is of type `E2`, which is marked as non-exhaustive
+ = note: the matched value is of type `E2`
+ = note: `E2` is marked as non-exhaustive, so a wildcard `_` is necessary to match exhaustively
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
|
LL | match e2 { E2::A => (), E2::B => (), _ => todo!() };