]> git.lizzy.rs Git - rust.git/blob - src/test/ui/existential_types/no_inferrable_concrete_type.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / existential_types / no_inferrable_concrete_type.stderr
1 error[E0391]: cycle detected when processing `Foo`
2   --> $DIR/no_inferrable_concrete_type.rs:16:1
3    |
4 LL | existential type Foo: Copy; //~ cycle detected
5    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7 note: ...which requires processing `bar`...
8   --> $DIR/no_inferrable_concrete_type.rs:19:23
9    |
10 LL | fn bar(x: Foo) -> Foo { x }
11    |                       ^^^^^
12    = note: ...which again requires processing `Foo`, completing the cycle
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0391`.