]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/recursive-zst-static.unleash.stderr
Rollup merge of #72279 - RalfJung:raw-ref-macros, r=nikomatsakis
[rust.git] / src / test / ui / consts / recursive-zst-static.unleash.stderr
1 error[E0391]: cycle detected when const-evaluating `FOO`
2   --> $DIR/recursive-zst-static.rs:10:1
3    |
4 LL | static FOO: () = FOO;
5    | ^^^^^^^^^^^^^^^^^^^^^
6    |
7 note: ...which requires const-evaluating `FOO`...
8   --> $DIR/recursive-zst-static.rs:10:1
9    |
10 LL | static FOO: () = FOO;
11    | ^^^^^^^^^^^^^^^^^^^^^
12    = note: ...which again requires const-evaluating `FOO`, completing the cycle
13 note: cycle used when const-evaluating + checking `FOO`
14   --> $DIR/recursive-zst-static.rs:10:1
15    |
16 LL | static FOO: () = FOO;
17    | ^^^^^^^^^^^^^^^^^^^^^
18
19 error: aborting due to previous error
20
21 For more information about this error, try `rustc --explain E0391`.