]> git.lizzy.rs Git - rust.git/blob - src/test/ui/cycle-trait/cycle-trait-default-type-trait.stderr
Auto merge of #100209 - cjgillot:source-file-index, r=estebank
[rust.git] / src / test / ui / cycle-trait / cycle-trait-default-type-trait.stderr
1 error[E0391]: cycle detected when computing type of `Foo::X`
2   --> $DIR/cycle-trait-default-type-trait.rs:4:23
3    |
4 LL | trait Foo<X = Box<dyn Foo>> {
5    |                       ^^^
6    |
7    = note: ...which immediately requires computing type of `Foo::X` again
8 note: cycle used when collecting item types in top-level module
9   --> $DIR/cycle-trait-default-type-trait.rs:4:1
10    |
11 LL | / trait Foo<X = Box<dyn Foo>> {
12 LL | |
13 LL | | }
14 LL | |
15 LL | | fn main() { }
16    | |_____________^
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0391`.