summaryrefslogtreecommitdiffstats
path: root/src/test/ui/associated-type-bounds/ambiguous-associated-type2.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/associated-type-bounds/ambiguous-associated-type2.stderr')
-rw-r--r--src/test/ui/associated-type-bounds/ambiguous-associated-type2.stderr16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/ui/associated-type-bounds/ambiguous-associated-type2.stderr b/src/test/ui/associated-type-bounds/ambiguous-associated-type2.stderr
new file mode 100644
index 000000000..4162cdaa8
--- /dev/null
+++ b/src/test/ui/associated-type-bounds/ambiguous-associated-type2.stderr
@@ -0,0 +1,16 @@
+error[E0391]: cycle detected when computing the super traits of `Baz` with associated type name `Item`
+ --> $DIR/ambiguous-associated-type2.rs:7:1
+ |
+LL | trait Baz: Foo + Bar<Self::Item> {}
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ |
+ = note: ...which immediately requires computing the super traits of `Baz` with associated type name `Item` again
+note: cycle used when computing the super traits of `Baz`
+ --> $DIR/ambiguous-associated-type2.rs:7:1
+ |
+LL | trait Baz: Foo + Bar<Self::Item> {}
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0391`.