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
{{ message }}
This repository was archived by the owner on Apr 5, 2024. It is now read-only.
There seem to be inconsistencies with lint warnings when using let statement with wildcards inside closures.
structProps{field_1:u32,//~ WARNING: field is never read: `field_1`field_2:u32,//~ WARNING: field is never read: `field_2`}fninside_closures(){let props_2 = Props{//~ WARNING: unused variable: `props_2`field_1:1,field_2:1,};let _ = || {let _:Props = props_2;// Warning lint does not consider `props_2` as being used here.};}fnourside_closures(){let props_2 = Props{field_1:1,field_2:1,};let _:Props = props_2;// Warning lint does not consider `props_2` as being used here.}
Note this same inconsistency takes place without type anotation.