diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/recursion/recursive-static-definition.stderr | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/test/ui/recursion/recursive-static-definition.stderr b/src/test/ui/recursion/recursive-static-definition.stderr new file mode 100644 index 000000000..135976145 --- /dev/null +++ b/src/test/ui/recursion/recursive-static-definition.stderr @@ -0,0 +1,24 @@ +error[E0391]: cycle detected when const-evaluating + checking `FOO` + --> $DIR/recursive-static-definition.rs:1:1 + | +LL | pub static FOO: u32 = FOO; + | ^^^^^^^^^^^^^^^^^^^ + | +note: ...which requires const-evaluating + checking `FOO`... + --> $DIR/recursive-static-definition.rs:1:23 + | +LL | pub static FOO: u32 = FOO; + | ^^^ + = note: ...which again requires const-evaluating + checking `FOO`, completing the cycle +note: cycle used when linting top-level module + --> $DIR/recursive-static-definition.rs:1:1 + | +LL | / pub static FOO: u32 = FOO; +LL | | +LL | | +LL | | fn main() {} + | |____________^ + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0391`. |