]> git.lizzy.rs Git - rust.git/blob - tests/ui/recursion/recursive-static-definition.stderr
Rollup merge of #106759 - compiler-errors:revert-105255, r=cjgillot
[rust.git] / tests / ui / recursion / recursive-static-definition.stderr
1 error[E0391]: cycle detected when const-evaluating + checking `FOO`
2   --> $DIR/recursive-static-definition.rs:1:1
3    |
4 LL | pub static FOO: u32 = FOO;
5    | ^^^^^^^^^^^^^^^^^^^
6    |
7 note: ...which requires const-evaluating + checking `FOO`...
8   --> $DIR/recursive-static-definition.rs:1:23
9    |
10 LL | pub static FOO: u32 = FOO;
11    |                       ^^^
12    = note: ...which again requires const-evaluating + checking `FOO`, completing the cycle
13 note: cycle used when linting top-level module
14   --> $DIR/recursive-static-definition.rs:1:1
15    |
16 LL | / pub static FOO: u32 = FOO;
17 LL | |
18 LL | |
19 LL | | fn main() {}
20    | |____________^
21
22 error: aborting due to previous error
23
24 For more information about this error, try `rustc --explain E0391`.