Open
Description
trait T {
type A: Display;
}
impl T for () {
type A = ();
}
we shouldn't include the last note
as that is only useful when dealing with expressions:
error[E0277]: `()` doesn't implement `std::fmt::Display`
--> src/lib.rs:8:14
|
3 | trait T {
| - required by a bound in this
4 | type A: Display;
| ------- required by this bound in `T`
...
8 | type A = ();
| ^^ `()` cannot be formatted with the default formatter
|
= help: the trait `std::fmt::Display` is not implemented for `()`
= note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
Metadata
Metadata
Assignees
Labels
Area: Messages for errors, warnings, and lintsCategory: An issue proposing an enhancement or a PR with one.Diagnostics: An error or lint that needs small tweaks.Error messages that can be tackled with `#[rustc_on_unimplemented]`Low priorityRelevant to the compiler team, which will review and decide on the PR/issue.