Inform the user which trait is meant in the diagnostic itself instead of relying on the span making it obvious
This commit is contained in:
parent
cb26b35b12
commit
717294fa04
15 changed files with 40 additions and 27 deletions
|
|
@ -35,7 +35,7 @@ note: an implementation of `BitOr<_>` might be missing for `E`
|
|||
|
|
||||
LL | enum E { A, B }
|
||||
| ^^^^^^ must implement `BitOr<_>`
|
||||
note: the following trait must be implemented
|
||||
note: the trait `BitOr` must be implemented
|
||||
--> $SRC_DIR/core/src/ops/bit.rs:LL:COL
|
||||
|
||||
error: aborting due to 5 previous errors
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue