]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/associated-types/issue-23595-2.rs
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / ui / associated-types / issue-23595-2.rs
diff --git a/src/test/ui/associated-types/issue-23595-2.rs b/src/test/ui/associated-types/issue-23595-2.rs
new file mode 100644 (file)
index 0000000..2bfee7a
--- /dev/null
@@ -0,0 +1,10 @@
+#![feature(associated_type_defaults)]
+
+pub struct C<AType: A> {a:AType}
+
+pub trait A {
+    type B = C<Self::anything_here_kills_it>;
+    //~^ ERROR: associated type `anything_here_kills_it` not found for `Self`
+}
+
+fn main() {}