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
#![feature(staged_api)]#![staged_api]#![crate_type = "lib"]#![stable(feature = "rust1", since = "1.0.0")]#[stable(feature = "rust1", since = "1.0.0")]pubstructFoo{pubbar:u8,}#[stable(feature = "rust1", since = "1.0.0")]pubstructBaz(pubu8);
compiles without any error.
Notably this isn't a regression from #22803: I noticed it because core::iter::Scan has a public state field that has had no stability attribute from far before #22803. However, that PR did pick up some structs with missing stability attributes, I'm unsure of the exact circumstances when fields will get the errors or when they will not.