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