summaryrefslogtreecommitdiffstats
path: root/tests/ui/associated-consts/issue-102335-const.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/associated-consts/issue-102335-const.rs')
-rw-r--r--tests/ui/associated-consts/issue-102335-const.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/associated-consts/issue-102335-const.rs b/tests/ui/associated-consts/issue-102335-const.rs
new file mode 100644
index 000000000..f60cb92da
--- /dev/null
+++ b/tests/ui/associated-consts/issue-102335-const.rs
@@ -0,0 +1,12 @@
+#![feature(associated_const_equality)]
+
+trait T {
+ type A: S<C<X = 0i32> = 34>;
+ //~^ ERROR associated type bindings are not allowed here
+}
+
+trait S {
+ const C: i32;
+}
+
+fn main() {}