]> git.lizzy.rs Git - rust.git/blob - src/test/ui/cycle-trait/cycle-trait-supertrait-direct.stderr
Auto merge of #96711 - emilio:inline-slice-clone, r=nikic
[rust.git] / src / test / ui / cycle-trait / cycle-trait-supertrait-direct.stderr
1 error[E0391]: cycle detected when computing the super predicates of `Chromosome`
2   --> $DIR/cycle-trait-supertrait-direct.rs:3:1
3    |
4 LL | trait Chromosome: Chromosome {
5    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7 note: ...which requires computing the super traits of `Chromosome`...
8   --> $DIR/cycle-trait-supertrait-direct.rs:3:19
9    |
10 LL | trait Chromosome: Chromosome {
11    |                   ^^^^^^^^^^
12    = note: ...which again requires computing the super predicates of `Chromosome`, completing the cycle
13 note: cycle used when collecting item types in top-level module
14   --> $DIR/cycle-trait-supertrait-direct.rs:3:1
15    |
16 LL | / trait Chromosome: Chromosome {
17 LL | |
18 LL | | }
19    | |_^
20
21 error: aborting due to previous error
22
23 For more information about this error, try `rustc --explain E0391`.