summaryrefslogtreecommitdiffstats
path: root/src/test/ui/error-codes/E0229.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/error-codes/E0229.rs')
-rw-r--r--src/test/ui/error-codes/E0229.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/ui/error-codes/E0229.rs b/src/test/ui/error-codes/E0229.rs
new file mode 100644
index 000000000..4c1934107
--- /dev/null
+++ b/src/test/ui/error-codes/E0229.rs
@@ -0,0 +1,17 @@
+pub trait Foo {
+ type A;
+ fn boo(&self) -> <Self as Foo>::A;
+}
+
+struct Bar;
+
+impl Foo for isize {
+ type A = usize;
+ fn boo(&self) -> usize { 42 }
+}
+
+fn baz<I>(x: &<I as Foo<A=Bar>>::A) {}
+//~^ ERROR associated type bindings are not allowed here [E0229]
+
+fn main() {
+}