-
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 lintsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Description
Currently, we say:
foo.rs:14:22: 14:32 error: cannot convert to a trait object because trait `Foo` is not object-safe [E0038]
foo.rs:14 let test: &Bar = &mut thing;
^~~~~~~~~~
note: cannot call a generic method (`foo`) through a trait object
But we should include the information that it's Bar that is not object-safe, because Foo
is not and it inherits from Foo
.
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.