Closed
Description
#![feature(fn_traits)]
struct S;
impl Fn(u32) -> u32 for S {
fn call(&self) -> u32 {
5
}
}
fn main() {
}
This yields:
error[E0229]: associated type bindings are not allowed here
--> foo2.rs:5:17
|
5 | impl Fn(u32) -> u32 for S {
| ^^^ associate type not allowed here
error: aborting due to previous error
Which is extremely confusing and non-actionable.
Metadata
Metadata
Assignees
Labels
Area: Messages for errors, warnings, and lintsCategory: An issue proposing an enhancement or a PR with one.Diagnostics: Confusing error or lint that should be reworked.Diagnostics: A diagnostic that is giving misleading or incorrect information.Diagnostics: An error or lint that doesn't give enough information about the problem at hand.Relevant to the compiler team, which will review and decide on the PR/issue.This issue requires a nightly compiler in some way.