2020-09-24 13:12:28 -05:00
|
|
|
error[E0658]: `transmute` is not allowed in constant functions
|
2020-06-25 19:43:48 -05:00
|
|
|
--> $DIR/internal-unstable-const.rs:11:14
|
2020-01-10 20:48:52 -06:00
|
|
|
|
|
2020-06-25 19:43:48 -05:00
|
|
|
LL | unsafe { std::mem::transmute(4u32) }
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-09-24 13:12:28 -05:00
|
|
|
= note: see issue #53605 <https://github.com/rust-lang/rust/issues/53605> for more information
|
|
|
|
= help: add `#![feature(const_fn_transmute)]` to the crate attributes to enable
|
|
|
|
= note: `transmute` is only allowed in constants and statics for now
|
2020-01-10 20:48:52 -06:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2020-09-24 13:12:28 -05:00
|
|
|
For more information about this error, try `rustc --explain E0658`.
|