rust/src/test/ui/internal/internal-unstable-const.stderr

14 lines
568 B
Plaintext
Raw Normal View History

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-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
error: aborting due to previous error
2020-09-24 13:12:28 -05:00
For more information about this error, try `rustc --explain E0658`.