about summary refs log tree commit diff
path: root/tests/ui/inline-const/const-match-pat-generic.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/inline-const/const-match-pat-generic.stderr')
-rw-r--r--tests/ui/inline-const/const-match-pat-generic.stderr26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/ui/inline-const/const-match-pat-generic.stderr b/tests/ui/inline-const/const-match-pat-generic.stderr
new file mode 100644
index 00000000000..77267f12fb1
--- /dev/null
+++ b/tests/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
+