Closed as duplicate of#49975
Closed as duplicate of#49975
Description
fn main() {
#![feature(default_field_values)]
let () = 1;
}
This has caused issues in the past with people not realizing that the attribute wasn't set in the right place. It should probably be its own error/deny-by-default lint, specifically for feature
.
Metadata
Metadata
Assignees
Labels
Area: Messages for errors, warnings, and lintsArea: Lints (warnings about flaws in source code) such as unused_mut.Diagnostics: Confusing error or lint; hard to understand for new users.Diagnostics: An error or lint that doesn't give enough information about the problem at hand.Lint: unused_attributesRelevant to the compiler team, which will review and decide on the PR/issue.This issue requires a nightly compiler in some way.