]>
Commit | Line | Data |
---|---|---|
1b1a35ee | 1 | error[E0658]: `transmute` is not allowed in constant functions |
f035d41b | 2 | --> $DIR/internal-unstable-const.rs:11:14 |
dfeec247 | 3 | | |
f035d41b XL |
4 | LL | unsafe { std::mem::transmute(4u32) } |
5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ | |
dfeec247 | 6 | | |
1b1a35ee XL |
7 | = note: see issue #53605 <https://github.com/rust-lang/rust/issues/53605> for more information |
8 | = help: add `#![feature(const_fn_transmute)]` to the crate attributes to enable | |
9 | = note: `transmute` is only allowed in constants and statics for now | |
dfeec247 XL |
10 | |
11 | error: aborting due to previous error | |
12 | ||
1b1a35ee | 13 | For more information about this error, try `rustc --explain E0658`. |