There was an error while loading. Please reload this page.
The following code:
#[inline_never] unconstrained fn f(mut b: [bool; 1]) -> [bool; 1] { for _ in 0_u32 ..= 0_u32 { b[0] = false; }; b } unconstrained fn main() -> pub [bool; 1] { let _ = f([true]); [true] }
returns [false] when the return value should be the literal [true]. Apparently constant folding gets confused around the two [true] literals involved?
[false]
[true]
The following code:
returns
[false]when the return value should be the literal[true]. Apparently constant folding gets confused around the two[true]literals involved?