-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsC-bugCategory: This is a bug.Category: This is a bug.
Description
I found a case in which no line number is printed where it is known:
Code:
trait Foo {
type T;
fn foo(&self, t: Self::T);
}
impl Foo for u32 {
type T = ();
fn foo(&self, t: impl Clone) {}
}
fn main() {}
Output:
Compiling playground v0.0.1 (file:///playground)
error[E0049]: method `foo` has 1 type parameter but its trait declaration has 0 type parameters
error: aborting due to previous error
For more information about this error, try `rustc --explain E0049`.
error: Could not compile `playground`.
To learn more, run the command again with --verbose.
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsC-bugCategory: This is a bug.Category: This is a bug.