Closed
Description
The following code builds on stable without even a warning:
#[cfg(any())]
auto trait Foo {}
That is surprising since there was some effort recently to start ensuring that unstable syntax does not "leak" into stable Rust, so I expected at least a future-compatibility warning. (See e.g. #99935)
Metadata
Metadata
Assignees
Labels
Area: auto traits (e.g., `auto trait Send {}`)Category: This is a bug.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.`#![feature(auto_traits)]`Relevant to the compiler team, which will review and decide on the PR/issue.