summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/match_ice.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/consts/match_ice.stderr')
-rw-r--r--tests/ui/consts/match_ice.stderr8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/consts/match_ice.stderr b/tests/ui/consts/match_ice.stderr
new file mode 100644
index 000000000..699b4a5e2
--- /dev/null
+++ b/tests/ui/consts/match_ice.stderr
@@ -0,0 +1,8 @@
+error: to use a constant of type `S` in a pattern, `S` must be annotated with `#[derive(PartialEq, Eq)]`
+ --> $DIR/match_ice.rs:11:9
+ |
+LL | C => {}
+ | ^
+
+error: aborting due to previous error
+