rust/tests/ui/recursion/recursive-static-definition.stderr
Ralf Jung 17946c22b1 const-eval error: always say in which item the error occurred
also adjust the wording a little so that we don't say "the error occurred here" for two different spans
2025-06-07 13:42:30 +02:00

16 lines
560 B
Plaintext

error[E0080]: encountered static that tried to initialize itself with itself
--> $DIR/recursive-static-definition.rs:1:23
|
LL | pub static FOO: u32 = FOO;
| ^^^ evaluation of `FOO` failed here
error[E0080]: encountered static that tried to initialize itself with itself
--> $DIR/recursive-static-definition.rs:9:23
|
LL | pub static BAR: Foo = BAR;
| ^^^ evaluation of `BAR` failed here
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0080`.