summaryrefslogtreecommitdiffstats
path: root/src/test/ui/inline-const/const-match-pat-generic.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/inline-const/const-match-pat-generic.stderr')
-rw-r--r--src/test/ui/inline-const/const-match-pat-generic.stderr26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/test/ui/inline-const/const-match-pat-generic.stderr b/src/test/ui/inline-const/const-match-pat-generic.stderr
new file mode 100644
index 000000000..77267f12f
--- /dev/null
+++ b/src/test/ui/inline-const/const-match-pat-generic.stderr
@@ -0,0 +1,26 @@
+error: constant pattern depends on a generic parameter
+ --> $DIR/const-match-pat-generic.rs:8:9
+ |
+LL | const { V } => {},
+ | ^^^^^^^^^^^
+
+error: constant pattern depends on a generic parameter
+ --> $DIR/const-match-pat-generic.rs:21:9
+ |
+LL | const { f(V) } => {},
+ | ^^^^^^^^^^^^^^
+
+error: constant pattern depends on a generic parameter
+ --> $DIR/const-match-pat-generic.rs:8:9
+ |
+LL | const { V } => {},
+ | ^^^^^^^^^^^
+
+error: constant pattern depends on a generic parameter
+ --> $DIR/const-match-pat-generic.rs:21:9
+ |
+LL | const { f(V) } => {},
+ | ^^^^^^^^^^^^^^
+
+error: aborting due to 4 previous errors
+