about summary refs log tree commit diff
path: root/tests/ui/issues/issue-24682.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/issues/issue-24682.rs')
-rw-r--r--tests/ui/issues/issue-24682.rs21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-24682.rs b/tests/ui/issues/issue-24682.rs
new file mode 100644
index 00000000000..0d1ab73417c
--- /dev/null
+++ b/tests/ui/issues/issue-24682.rs
@@ -0,0 +1,21 @@
+trait A: Sized {
+    type N;
+    fn x() ->
+        Self<
+          N= //~ ERROR associated type bindings are not allowed here
+          Self::N> {
+        loop {}
+    }
+    fn y(&self) ->
+        std
+           <N=()> //~ ERROR associated type bindings are not allowed here
+           ::option::Option<()>
+    { None }
+    fn z(&self) ->
+        u32<N=()> //~ ERROR associated type bindings are not allowed here
+    { 42 }
+
+}
+
+fn main() {
+}