]> git.lizzy.rs Git - rust.git/blob - tests/ui/associated-types/issue-20825.stderr
Rollup merge of #107306 - compiler-errors:correct-sugg-for-closure-arg-needs-borrow...
[rust.git] / tests / ui / associated-types / issue-20825.stderr
1 error[E0391]: cycle detected when computing the super traits of `Processor` with associated type name `Input`
2   --> $DIR/issue-20825.rs:5:1
3    |
4 LL | pub trait Processor: Subscriber<Input = Self::Input> {
5    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: ...which immediately requires computing the super traits of `Processor` with associated type name `Input` again
8 note: cycle used when computing the super traits of `Processor`
9   --> $DIR/issue-20825.rs:5:1
10    |
11 LL | pub trait Processor: Subscriber<Input = Self::Input> {
12    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0391`.