summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/recover-assoc-const-constraint.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/recover-assoc-const-constraint.rs')
-rw-r--r--tests/ui/parser/recover-assoc-const-constraint.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/parser/recover-assoc-const-constraint.rs b/tests/ui/parser/recover-assoc-const-constraint.rs
new file mode 100644
index 000000000..1453e6cb5
--- /dev/null
+++ b/tests/ui/parser/recover-assoc-const-constraint.rs
@@ -0,0 +1,9 @@
+#[cfg(FALSE)]
+fn syntax() {
+ bar::<Item = 42>();
+ //~^ ERROR associated const equality is incomplete
+ bar::<Item = { 42 }>();
+ //~^ ERROR associated const equality is incomplete
+}
+
+fn main() {}