You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0658]: unions in const fn are unstable (see issue #51909)
--> /Users/josef/.cargo/registry/src/github.com-1ecc6299db9ec823/heapless-0.3.6/src/__core.rs:43:9
|
43 | U { none: () }.some
| ^^^^^^^^^^^^^^^^^^^
|
= help: add #![feature(const_fn_union)] to the crate attributes to enable
error: aborting due to previous error
The text was updated successfully, but these errors were encountered:
MajorBreakfast
changed the title
unions in const fn are unstable
Error on nightly: Unions in const fn are unstable
Aug 18, 2018
#![cfg_attr(feature = "const-fn", feature(const_fn_union))] can be easily added to lib.rs, but I get another error after that. One of them is:
error[E0080]: this static likely exhibits undefined behavior
--> src/linear_map.rs:456:9
|
456 | static mut _L: LinearMap<i32, i32, U8>= LinearMap::new();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type validation failed: encountered undefined bytes at .buffer.buffer.value.data.parent1.parent1.parent1.data.0
|
= note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rust compiler repository if you believe it should not be considered undefined behavior
I'm getting this error on recent nightlies:
The text was updated successfully, but these errors were encountered: