2024-01-10 10:30:07 -06:00
|
|
|
error[E0391]: cycle detected when type-checking `foo`
|
2024-03-10 20:18:41 -05:00
|
|
|
--> $DIR/clone-rpit.rs:13:1
|
2024-01-10 10:30:07 -06:00
|
|
|
|
|
|
|
|
LL | pub fn foo<'a, 'b>() -> impl Clone {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: ...which requires coroutine witness types for `foo::{closure#0}`...
|
2024-04-11 08:15:34 -05:00
|
|
|
--> $DIR/clone-rpit.rs:15:5
|
2024-01-10 10:30:07 -06:00
|
|
|
|
|
|
|
|
LL | move |_: ()| {
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
note: ...which requires promoting constants in MIR for `foo::{closure#0}`...
|
2024-04-11 08:15:34 -05:00
|
|
|
--> $DIR/clone-rpit.rs:15:5
|
2024-01-10 10:30:07 -06:00
|
|
|
|
|
|
|
|
LL | move |_: ()| {
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
note: ...which requires checking if `foo::{closure#0}` contains FFI-unwind calls...
|
2024-04-11 08:15:34 -05:00
|
|
|
--> $DIR/clone-rpit.rs:15:5
|
2024-01-10 10:30:07 -06:00
|
|
|
|
|
|
|
|
LL | move |_: ()| {
|
|
|
|
| ^^^^^^^^^^^^
|
2024-03-20 04:49:57 -05:00
|
|
|
note: ...which requires building MIR for `foo::{closure#0}`...
|
2024-04-11 08:15:34 -05:00
|
|
|
--> $DIR/clone-rpit.rs:15:5
|
2024-01-10 10:30:07 -06:00
|
|
|
|
|
|
|
|
LL | move |_: ()| {
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
note: ...which requires match-checking `foo::{closure#0}`...
|
2024-04-11 08:15:34 -05:00
|
|
|
--> $DIR/clone-rpit.rs:15:5
|
2024-01-10 10:30:07 -06:00
|
|
|
|
|
|
|
|
LL | move |_: ()| {
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
note: ...which requires type-checking `foo::{closure#0}`...
|
2024-04-11 08:15:34 -05:00
|
|
|
--> $DIR/clone-rpit.rs:15:5
|
2024-01-10 10:30:07 -06:00
|
|
|
|
|
|
|
|
LL | move |_: ()| {
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
= note: ...which again requires type-checking `foo`, completing the cycle
|
|
|
|
note: cycle used when computing type of opaque `foo::{opaque#0}`
|
2024-03-10 20:18:41 -05:00
|
|
|
--> $DIR/clone-rpit.rs:13:25
|
2024-01-10 10:30:07 -06:00
|
|
|
|
|
|
|
|
LL | pub fn foo<'a, 'b>() -> impl Clone {
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
= note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information
|
|
|
|
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0391`.
|