fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0080]: could not evaluate static initializer 2 --> $DIR/write-to-static-mut-in-static.rs:2:33 3 | 4LL | pub static mut B: () = unsafe { A = 1; }; 5 | ^^^^^ modifying a static's initial value from another static's initializer 6 7error[E0391]: cycle detected when const-evaluating + checking `C` 8 --> $DIR/write-to-static-mut-in-static.rs:5:1 9 | 10LL | pub static mut C: u32 = unsafe { C = 1; 0 }; 11 | ^^^^^^^^^^^^^^^^^^^^^ 12 | 13note: ...which requires const-evaluating + checking `C`... 14 --> $DIR/write-to-static-mut-in-static.rs:5:34 15 | 16LL | pub static mut C: u32 = unsafe { C = 1; 0 }; 17 | ^^^^^ 18 = note: ...which again requires const-evaluating + checking `C`, completing the cycle 19note: cycle used when linting top-level module 20 --> $DIR/write-to-static-mut-in-static.rs:1:1 21 | 22LL | / pub static mut A: u32 = 0; 23LL | | pub static mut B: () = unsafe { A = 1; }; 24LL | | 25LL | | 26... | 27LL | | 28LL | | fn main() {} 29 | |____________^ 30 = note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information 31 32error: aborting due to 2 previous errors 33 34Some errors have detailed explanations: E0080, E0391. 35For more information about an error, try `rustc --explain E0080`.