rust/src/test/ui/impl-trait/auto-trait-leak.stderr

30 lines
1.1 KiB
Plaintext
Raw Normal View History

error[E0391]: cycle detected when processing `cycle1`
2018-05-22 07:31:56 -05:00
--> $DIR/auto-trait-leak.rs:24:1
|
2018-05-22 07:31:56 -05:00
LL | fn cycle1() -> impl Clone {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-05-22 07:31:56 -05:00
note: ...which requires evaluating trait selection obligation `impl std::clone::Clone: std::marker::Send`...
note: ...which requires processing `cycle2::{{exist-impl-Trait}}`...
--> $DIR/auto-trait-leak.rs:31:16
|
2018-05-22 07:31:56 -05:00
LL | fn cycle2() -> impl Clone {
| ^^^^^^^^^^
note: ...which requires processing `cycle2`...
--> $DIR/auto-trait-leak.rs:31:1
|
2018-05-22 07:31:56 -05:00
LL | fn cycle2() -> impl Clone {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires evaluating trait selection obligation `impl std::clone::Clone: std::marker::Send`...
note: ...which requires processing `cycle1::{{exist-impl-Trait}}`...
2018-05-22 07:31:56 -05:00
--> $DIR/auto-trait-leak.rs:24:16
|
2018-02-22 18:42:32 -06:00
LL | fn cycle1() -> impl Clone {
2018-05-22 07:31:56 -05:00
| ^^^^^^^^^^
= note: ...which again requires processing `cycle1`, completing the cycle
note: cycle used when type-checking all item bodies
error: aborting due to previous error
For more information about this error, try `rustc --explain E0391`.