fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1warning: skipping const checks 2 --> $DIR/mutating_global.rs:9:9 3 | 4LL | GLOBAL = 99 5 | ^^^^^^ 6 7warning: skipping const checks 8 --> $DIR/mutating_global.rs:9:9 9 | 10LL | GLOBAL = 99 11 | ^^^^^^ 12 13error: any use of this value will cause an error 14 --> $DIR/mutating_global.rs:9:9 15 | 16LL | / const MUTATING_GLOBAL: () = { 17LL | | unsafe { 18LL | | GLOBAL = 99 19 | | ^^^^^^^^^^^ modifying a static's initial value from another static's initializer 20LL | | 21LL | | 22LL | | } 23LL | | }; 24 | |__- 25 | 26 = note: `#[deny(const_err)]` on by default 27 28error: aborting due to previous error; 2 warnings emitted 29