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:
Oli Scherer 2022-12-12 11:55:46 +00:00
parent cb26b35b12
commit 717294fa04
15 changed files with 40 additions and 27 deletions

View file

@ -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