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:20:14
4 LL | unsafe { transmute(x) } //~ ERROR E0015
7 error[E0015]: calls in constant functions are limited to constant functions, tuple structs and tuple variants
8 --> $DIR/const-fn-not-safe-for-const.rs:24:5
10 LL | random() //~ ERROR E0015
13 error[E0013]: constant functions cannot refer to statics, use a constant instead
14 --> $DIR/const-fn-not-safe-for-const.rs:30:5
19 error[E0013]: constant functions cannot refer to statics, use a constant instead
20 --> $DIR/const-fn-not-safe-for-const.rs:35:5
25 error[E0658]: let bindings in constant functions are unstable (see issue #48821)
26 --> $DIR/const-fn-not-safe-for-const.rs:40:13
31 = help: add #![feature(const_let)] to the crate attributes to enable
33 error[E0658]: statements in constant functions are unstable (see issue #48821)
34 --> $DIR/const-fn-not-safe-for-const.rs:40:13
39 = help: add #![feature(const_let)] to the crate attributes to enable
41 error[E0658]: let bindings in constant functions are unstable (see issue #48821)
42 --> $DIR/const-fn-not-safe-for-const.rs:43:13
47 = help: add #![feature(const_let)] to the crate attributes to enable
49 error[E0658]: statements in constant functions are unstable (see issue #48821)
50 --> $DIR/const-fn-not-safe-for-const.rs:43:13
55 = help: add #![feature(const_let)] to the crate attributes to enable
57 error[E0658]: let bindings in constant functions are unstable (see issue #48821)
58 --> $DIR/const-fn-not-safe-for-const.rs:46:5
63 = help: add #![feature(const_let)] to the crate attributes to enable
65 error[E0658]: let bindings in constant functions are unstable (see issue #48821)
66 --> $DIR/const-fn-not-safe-for-const.rs:46:9
71 = help: add #![feature(const_let)] to the crate attributes to enable
73 error: aborting due to 10 previous errors
75 Some errors occurred: E0013, E0015, E0658.
76 For more information about an error, try `rustc --explain E0013`.