summaryrefslogtreecommitdiffstats
path: root/tests/ui/associated-consts/issue-93835.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/associated-consts/issue-93835.rs')
-rw-r--r--tests/ui/associated-consts/issue-93835.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/associated-consts/issue-93835.rs b/tests/ui/associated-consts/issue-93835.rs
new file mode 100644
index 000000000..b2a437fcb
--- /dev/null
+++ b/tests/ui/associated-consts/issue-93835.rs
@@ -0,0 +1,12 @@
+#![feature(type_ascription)]
+
+fn e() {
+ type_ascribe!(p, a<p:p<e=6>>);
+ //~^ ERROR cannot find type `a` in this scope
+ //~| ERROR cannot find value
+ //~| ERROR associated const equality
+ //~| ERROR cannot find trait `p` in this scope
+ //~| ERROR associated type bounds
+}
+
+fn main() {}