]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/auto-trait-leak.stderr
6681116f0f3936cb40469f582203144298798aac
[rust.git] / src / test / ui / impl-trait / auto-trait-leak.stderr
1 error[E0391]: cycle detected when processing `cycle1`
2   --> $DIR/auto-trait-leak.rs:24:1
3    |
4 LL | fn cycle1() -> impl Clone {
5    | ^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7 note: ...which requires evaluating trait selection obligation `impl std::clone::Clone: std::marker::Send`...
8 note: ...which requires processing `cycle2::{{impl-Trait}}`...
9   --> $DIR/auto-trait-leak.rs:31:16
10    |
11 LL | fn cycle2() -> impl Clone {
12    |                ^^^^^^^^^^
13 note: ...which requires processing `cycle2`...
14   --> $DIR/auto-trait-leak.rs:31:1
15    |
16 LL | fn cycle2() -> impl Clone {
17    | ^^^^^^^^^^^^^^^^^^^^^^^^^
18 note: ...which requires evaluating trait selection obligation `impl std::clone::Clone: std::marker::Send`...
19 note: ...which requires processing `cycle1::{{impl-Trait}}`...
20   --> $DIR/auto-trait-leak.rs:24:16
21    |
22 LL | fn cycle1() -> impl Clone {
23    |                ^^^^^^^^^^
24    = note: ...which again requires processing `cycle1`, completing the cycle
25 note: cycle used when type-checking all item bodies
26
27 error: aborting due to previous error
28
29 For more information about this error, try `rustc --explain E0391`.