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
let array = [$expression, $expression, $expression, ...];
This would allow things like
let bools = [AtomicBool::new(false);10];let array:[T;10] = [Default::default();10];
Currently it only works for values that implement Copy. For the use case above, there is currently not really any alternative to just writing [$expr, $expr, ...].
I think this is a backwards-compatible change.
HadrienG2, stephank, emillaine, crumblingstatue, sarthakn7 and 9 more