rust/tests/ui/consts/write-to-static-mut-in-static.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
601 B
Plaintext
Raw Normal View History

2018-12-17 13:20:42 +00:00
error[E0080]: could not evaluate static initializer
--> $DIR/write-to-static-mut-in-static.rs:2:33
2018-08-08 12:28:26 +00:00
|
LL | pub static mut B: () = unsafe { A = 1; };
2020-03-21 22:20:43 +00:00
| ^^^^^ modifying a static's initial value from another static's initializer
2018-08-08 12:28:26 +00:00
error[E0080]: could not evaluate static initializer
--> $DIR/write-to-static-mut-in-static.rs:7:21
2022-06-18 17:48:44 +00:00
|
LL | pub static D: u32 = D;
| ^ encountered static that tried to initialize itself with itself
2018-08-08 12:28:26 +00:00
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0080`.