summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/const_in_pattern/no-eq-branch-fail.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/consts/const_in_pattern/no-eq-branch-fail.stderr')
-rw-r--r--tests/ui/consts/const_in_pattern/no-eq-branch-fail.stderr8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/consts/const_in_pattern/no-eq-branch-fail.stderr b/tests/ui/consts/const_in_pattern/no-eq-branch-fail.stderr
new file mode 100644
index 000000000..e505dad69
--- /dev/null
+++ b/tests/ui/consts/const_in_pattern/no-eq-branch-fail.stderr
@@ -0,0 +1,8 @@
+error: to use a constant of type `Foo` in a pattern, `Foo` must be annotated with `#[derive(PartialEq, Eq)]`
+ --> $DIR/no-eq-branch-fail.rs:21:9
+ |
+LL | BAR_BAZ => panic!(),
+ | ^^^^^^^
+
+error: aborting due to previous error
+