Error message E0568 doesn't match actual restrictions on auto traits #117838
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
F-auto_traits
`#![feature(auto_traits)]`
I noticed this while looking at #117829.
Code
Error output
The problem
The error message E0568 refers to "super traits or lifetime bounds", but this code isn't trying to use either of those features.
I guess the error message should be updated to reflect the actual rule, or split into two error messages. But I'm not sure what the actual rule is for auto traits. No bounds at all, whether directly on the trait or in
where
clauses?CC @FabianWolff who updated the rule and error message in #89494
Version
@rustbot label +A-diagnostics +f-auto_traits
The text was updated successfully, but these errors were encountered: