]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-20772.stderr
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-20772.stderr
1 error[E0391]: cycle detected when computing the super traits of `T` with associated type name `Item`
2   --> $DIR/issue-20772.rs:1:1
3    |
4 LL | trait T : Iterator<Item=Self::Item>
5    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: ...which immediately requires computing the super traits of `T` with associated type name `Item` again
8 note: cycle used when computing the super traits of `T`
9   --> $DIR/issue-20772.rs:1:1
10    |
11 LL | trait T : Iterator<Item=Self::Item>
12    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0391`.