]> git.lizzy.rs Git - rust.git/blob - src/test/ui/cycle-trait/cycle-trait-default-type-trait.stderr
Rollup merge of #94577 - RalfJung:simd-miri, r=scottmcm
[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    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
13
14 error[E0391]: cycle detected when computing type of `Foo::X`
15   --> $DIR/cycle-trait-default-type-trait.rs:4:23
16    |
17 LL | trait Foo<X = Box<dyn Foo>> {
18    |                       ^^^
19    |
20    = note: ...which immediately requires computing type of `Foo::X` again
21 note: cycle used when collecting item types in top-level module
22   --> $DIR/cycle-trait-default-type-trait.rs:4:1
23    |
24 LL | trait Foo<X = Box<dyn Foo>> {
25    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
26
27 error: aborting due to 2 previous errors
28
29 For more information about this error, try `rustc --explain E0391`.