fork/rust
git clone https://git.julia.blue/fork/rust
f3e1a954d2e
1.41.1
1error[E0019]: static contains unimplemented expression type 2 --> $DIR/mod-static-with-const-fn.rs:18:5 3 | 4LL | *FOO.0.get() = 5; 5 | ^^^^^^^^^^^^^^^^ 6 7error[E0015]: calls in statics are limited to constant functions, tuple structs and tuple variants 8 --> $DIR/mod-static-with-const-fn.rs:21:5 9 | 10LL | foo(); 11 | ^^^^^ 12 13error: aborting due to 2 previous errors 14 15Some errors have detailed explanations: E0015, E0019. 16For more information about an error, try `rustc --explain E0015`.