]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-17252.stderr
Merge commit 'dbee13661efa269cb4cd57bb4c6b99a19732b484' into sync_cg_clif-2020-12-27
[rust.git] / src / test / ui / issues / issue-17252.stderr
1 error[E0391]: cycle detected when normalizing `FOO`
2    |
3 note: ...which requires simplifying constant for the type system `FOO`...
4   --> $DIR/issue-17252.rs:1:1
5    |
6 LL | const FOO: usize = FOO;
7    | ^^^^^^^^^^^^^^^^^^^^^^^
8 note: ...which requires simplifying constant for the type system `FOO`...
9   --> $DIR/issue-17252.rs:1:1
10    |
11 LL | const FOO: usize = FOO;
12    | ^^^^^^^^^^^^^^^^^^^^^^^
13 note: ...which requires const-evaluating + checking `FOO`...
14   --> $DIR/issue-17252.rs:1:1
15    |
16 LL | const FOO: usize = FOO;
17    | ^^^^^^^^^^^^^^^^^^^^^^^
18    = note: ...which again requires normalizing `FOO`, completing the cycle
19 note: cycle used when const-evaluating + checking `main::{constant#0}`
20   --> $DIR/issue-17252.rs:4:18
21    |
22 LL |     let _x: [u8; FOO]; // caused stack overflow prior to fix
23    |                  ^^^
24
25 error: aborting due to previous error
26
27 For more information about this error, try `rustc --explain E0391`.