2023-07-12 21:59:01 -05:00
|
|
|
error[E0391]: cycle detected when building an abstract representation for `test::{constant#0}`
|
2020-09-21 15:01:18 -05:00
|
|
|
--> $DIR/closures.rs:3:35
|
|
|
|
|
|
|
|
|
LL | fn test<const N: usize>() -> [u8; N + (|| 42)()] {}
|
2022-05-10 09:19:19 -05:00
|
|
|
| ^^^^^^^^^^^^^
|
2020-09-21 15:01:18 -05:00
|
|
|
|
|
2022-05-10 09:19:19 -05:00
|
|
|
note: ...which requires building THIR for `test::{constant#0}`...
|
|
|
|
--> $DIR/closures.rs:3:35
|
|
|
|
|
|
|
|
|
LL | fn test<const N: usize>() -> [u8; N + (|| 42)()] {}
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
note: ...which requires type-checking `test::{constant#0}`...
|
|
|
|
--> $DIR/closures.rs:3:35
|
|
|
|
|
|
|
|
|
LL | fn test<const N: usize>() -> [u8; N + (|| 42)()] {}
|
|
|
|
| ^^^^^^^^^^^^^
|
2022-10-17 14:30:41 -05:00
|
|
|
= note: ...which again requires building an abstract representation for `test::{constant#0}`, completing the cycle
|
2022-05-10 09:19:19 -05:00
|
|
|
note: cycle used when checking that `test` is well-formed
|
|
|
|
--> $DIR/closures.rs:3:1
|
|
|
|
|
|
|
|
|
LL | fn test<const N: usize>() -> [u8; N + (|| 42)()] {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2023-07-18 20:53:34 -05:00
|
|
|
= 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
|
2020-09-21 15:01:18 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2022-05-10 09:19:19 -05:00
|
|
|
For more information about this error, try `rustc --explain E0391`.
|