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[E0080]: it is undefined behavior to use this value
--> txz.rs:4:28
|
4 | pub fn get_array() -> [u8; TEST] {
| ^^^^ constructing invalid value: encountered uninitialized memory, but expected an integer
I'm pretty sure this has to do with the override of providers.eval_to_const_value_raw in the recent 1.79.0 upgrade.
The text was updated successfully, but these errors were encountered:
tjhance
changed the title
const in array literals causes rustc error
const in array types causes rustc error
Nov 5, 2024
This is also problematic because the issue isn't restricted to the verus! macro, so it's problematic for crates with lots of external code. Currently a blocking issue for the rustlib project.
Reported on zulip:
gives this error:
I'm pretty sure this has to do with the override of
providers.eval_to_const_value_raw
in the recent 1.79.0 upgrade.The text was updated successfully, but these errors were encountered: