fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.2 KiB27 linesraw
1error[E0391]: cycle detected when building an abstract representation for `test::{constant#0}`
2  --> $DIR/closures.rs:3:35
3   |
4LL | fn test<const N: usize>() -> [u8; N + (|| 42)()] {}
5   |                                   ^^^^^^^^^^^^^
6   |
7note: ...which requires building THIR for `test::{constant#0}`...
8  --> $DIR/closures.rs:3:35
9   |
10LL | fn test<const N: usize>() -> [u8; N + (|| 42)()] {}
11   |                                   ^^^^^^^^^^^^^
12note: ...which requires type-checking `test::{constant#0}`...
13  --> $DIR/closures.rs:3:35
14   |
15LL | fn test<const N: usize>() -> [u8; N + (|| 42)()] {}
16   |                                   ^^^^^^^^^^^^^
17   = note: ...which again requires building an abstract representation for `test::{constant#0}`, completing the cycle
18note: cycle used when checking that `test` is well-formed
19  --> $DIR/closures.rs:3:1
20   |
21LL | fn test<const N: usize>() -> [u8; N + (|| 42)()] {}
22   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
23   = 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
24
25error: aborting due to previous error
26
27For more information about this error, try `rustc --explain E0391`.