summaryrefslogtreecommitdiffstats
path: root/tests/ui/associated-types/associated-types-eq-2.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/associated-types/associated-types-eq-2.stderr')
-rw-r--r--tests/ui/associated-types/associated-types-eq-2.stderr9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/associated-types/associated-types-eq-2.stderr b/tests/ui/associated-types/associated-types-eq-2.stderr
new file mode 100644
index 000000000..23ee8cd23
--- /dev/null
+++ b/tests/ui/associated-types/associated-types-eq-2.stderr
@@ -0,0 +1,9 @@
+error[E0229]: associated type bindings are not allowed here
+ --> $DIR/associated-types-eq-2.rs:16:30
+ |
+LL | fn baz<I: Foo>(x: &<I as Foo<A=Bar>>::A) {}
+ | ^^^^^ associated type not allowed here
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0229`.