summaryrefslogtreecommitdiffstats
path: root/src/test/ui/pattern/issue-68393-let-pat-assoc-constant.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/pattern/issue-68393-let-pat-assoc-constant.stderr')
-rw-r--r--src/test/ui/pattern/issue-68393-let-pat-assoc-constant.stderr15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/pattern/issue-68393-let-pat-assoc-constant.stderr b/src/test/ui/pattern/issue-68393-let-pat-assoc-constant.stderr
new file mode 100644
index 000000000..54ecc2498
--- /dev/null
+++ b/src/test/ui/pattern/issue-68393-let-pat-assoc-constant.stderr
@@ -0,0 +1,15 @@
+error[E0158]: associated consts cannot be referenced in patterns
+ --> $DIR/issue-68393-let-pat-assoc-constant.rs:20:40
+ |
+LL | pub fn test<A: Foo, B: Foo>(arg: EFoo, A::X: EFoo) {
+ | ^^^^
+
+error[E0158]: associated consts cannot be referenced in patterns
+ --> $DIR/issue-68393-let-pat-assoc-constant.rs:22:9
+ |
+LL | let A::X = arg;
+ | ^^^^
+
+error: aborting due to 2 previous errors
+
+For more information about this error, try `rustc --explain E0158`.