]> git.proxmox.com Git - rustc.git/blame - src/test/ui/internal/internal-unstable-const.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / internal / internal-unstable-const.stderr
CommitLineData
1b1a35ee 1error[E0658]: `transmute` is not allowed in constant functions
f035d41b 2 --> $DIR/internal-unstable-const.rs:11:14
dfeec247 3 |
f035d41b
XL
4LL | 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
11error: aborting due to previous error
12
1b1a35ee 13For more information about this error, try `rustc --explain E0658`.