summaryrefslogtreecommitdiffstats
path: root/tests/ui/binding/const-param.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/binding/const-param.stderr')
-rw-r--r--tests/ui/binding/const-param.stderr9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/binding/const-param.stderr b/tests/ui/binding/const-param.stderr
new file mode 100644
index 000000000..adda80810
--- /dev/null
+++ b/tests/ui/binding/const-param.stderr
@@ -0,0 +1,9 @@
+error[E0158]: const parameters cannot be referenced in patterns
+ --> $DIR/const-param.rs:5:9
+ |
+LL | N => {}
+ | ^
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0158`.