]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/recursive-zst-static.default.stderr
Add test for presence of read more links
[rust.git] / src / test / ui / consts / recursive-zst-static.default.stderr
1 error[E0391]: cycle detected when const-evaluating + checking `FOO`
2   --> $DIR/recursive-zst-static.rs:10:1
3    |
4 LL | static FOO: () = FOO;
5    | ^^^^^^^^^^^^^^
6    |
7 note: ...which requires const-evaluating + checking `FOO`...
8   --> $DIR/recursive-zst-static.rs:10:18
9    |
10 LL | static FOO: () = 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-zst-static.rs:10:1
15    |
16 LL | / static FOO: () = FOO;
17 LL | |
18 LL | | fn main() {
19 LL | |     FOO
20 LL | | }
21    | |_^
22
23 error: aborting due to previous error
24
25 For more information about this error, try `rustc --explain E0391`.