fork/rust

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

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
527 B16 linesraw
1error[E0391]: cycle detected when const checking `FOO`
2  --> $DIR/issue-17252.rs:1:20
3   |
4LL | const FOO: usize = FOO;
5   |                    ^^^
6   |
7   = note: ...which again requires const checking `FOO`, completing the cycle
8note: cycle used when const checking `main::{{constant}}#0`
9  --> $DIR/issue-17252.rs:4:18
10   |
11LL |     let _x: [u8; FOO]; // caused stack overflow prior to fix
12   |                  ^^^
13
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0391`.