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
This feature is to partially undo #54986 on a sane set-up. Types with no Drop can be sanely initialised gradually one field at a time.
structA{a:u8,b:(u64,u64),}let data:A;
data.b.0 = 0;//~ `data` not initialised
data.b.1 = 1;//~ `data` still not initialised, but `data.b` is
data.a = 0;// `data` is fully initialised.
data.a = 1;//~ ERROR `data` is not mutable.
Activity
BennoLossin commentedon Mar 13, 2026
rustbot commentedon Mar 13, 2026
BennoLossin commentedon Mar 13, 2026
BennoLossin commentedon Mar 13, 2026
ojeda commentedon Mar 13, 2026
khalidsaidi commentedon Mar 14, 2026