fork/rust
git clone https://git.julia.blue/fork/rust
5e1a799842b
1.41.0
1error[E0015]: calls in constant functions are limited to constant functions, tuple structs and tuple variants 2 --> $DIR/const-fn-not-safe-for-const.rs:14:5 3 | 4LL | random() 5 | ^^^^^^^^ 6 7error[E0013]: constant functions cannot refer to statics, use a constant instead 8 --> $DIR/const-fn-not-safe-for-const.rs:20:5 9 | 10LL | Y 11 | ^ 12 13error[E0013]: constant functions cannot refer to statics, use a constant instead 14 --> $DIR/const-fn-not-safe-for-const.rs:25:6 15 | 16LL | &Y 17 | ^ 18 19error: aborting due to 3 previous errors 20 21Some errors have detailed explanations: E0013, E0015. 22For more information about an error, try `rustc --explain E0013`.