]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/internal/internal-unstable-const.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / internal / internal-unstable-const.stderr
index 9626df23ec3c2838b80c68c54dd6f26c2cdd6c8c..adfb8dc36918dccfd0863eb9f6467f9517deab92 100644 (file)
@@ -1,12 +1,13 @@
-error[E0723]: can only call `transmute` from const items, not `const fn`
+error[E0658]: `transmute` is not allowed in constant functions
   --> $DIR/internal-unstable-const.rs:11:14
    |
 LL |     unsafe { std::mem::transmute(4u32) }
    |              ^^^^^^^^^^^^^^^^^^^^^^^^^
    |
-   = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
-   = help: add `#![feature(const_fn)]` to the crate attributes to enable
+   = 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
 
-For more information about this error, try `rustc --explain E0723`.
+For more information about this error, try `rustc --explain E0658`.