1 error[E0015]: calls in constant functions are limited to constant functions, tuple structs and tuple variants
2 --> $DIR/const-fn-not-safe-for-const.rs:24:5
4 LL | random() //~ ERROR E0015
7 error[E0013]: constant functions cannot refer to statics, use a constant instead
8 --> $DIR/const-fn-not-safe-for-const.rs:30:5
13 error[E0013]: constant functions cannot refer to statics, use a constant instead
14 --> $DIR/const-fn-not-safe-for-const.rs:35:5
19 error[E0658]: let bindings in constant functions are unstable (see issue #48821)
20 --> $DIR/const-fn-not-safe-for-const.rs:40:13
25 = help: add #![feature(const_let)] to the crate attributes to enable
27 error[E0658]: statements in constant functions are unstable (see issue #48821)
28 --> $DIR/const-fn-not-safe-for-const.rs:40:13
33 = help: add #![feature(const_let)] to the crate attributes to enable
35 error[E0658]: let bindings in constant functions are unstable (see issue #48821)
36 --> $DIR/const-fn-not-safe-for-const.rs:43:13
41 = help: add #![feature(const_let)] to the crate attributes to enable
43 error[E0658]: statements in constant functions are unstable (see issue #48821)
44 --> $DIR/const-fn-not-safe-for-const.rs:43:13
49 = help: add #![feature(const_let)] to the crate attributes to enable
51 error[E0658]: let bindings in constant functions are unstable (see issue #48821)
52 --> $DIR/const-fn-not-safe-for-const.rs:46:5
57 = help: add #![feature(const_let)] to the crate attributes to enable
59 error[E0658]: let bindings in constant functions are unstable (see issue #48821)
60 --> $DIR/const-fn-not-safe-for-const.rs:46:9
65 = help: add #![feature(const_let)] to the crate attributes to enable
67 error: aborting due to 9 previous errors
69 Some errors occurred: E0013, E0015, E0658.
70 For more information about an error, try `rustc --explain E0013`.