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
However, this seems not to be the behaviour of rustc. rustc instead accepts only outer attributes for each field, but not inner attributes for the entire expression.
For example, this compiles in rustc:
structS{x:i64,y:i64}fnmain(){let s = S{x:1,#[deprecated]y:2};}
But not this:
structS{x:i64,y:i64}fnmain(){let s = S{#![deprecated]x:1,y:2};}