diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2022-12-12 11:55:46 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2022-12-13 09:48:26 +0000 |
| commit | 717294fa04dacaa82e8efbad9021c8970bca4bb0 (patch) | |
| tree | e98a49bdf27327d5295a2dd47fcacb5d84654149 /src/test/ui/methods | |
| parent | cb26b35b12d810d7a8215869d9e434c4b0c7f25c (diff) | |
Inform the user which trait is meant in the diagnostic itself instead of relying on the span making it obvious
Diffstat (limited to 'src/test/ui/methods')
| -rw-r--r-- | src/test/ui/methods/method-call-err-msg.stderr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/methods/method-call-err-msg.stderr b/src/test/ui/methods/method-call-err-msg.stderr index 13d07ea2e49..3f4e647491e 100644 --- a/src/test/ui/methods/method-call-err-msg.stderr +++ b/src/test/ui/methods/method-call-err-msg.stderr @@ -61,7 +61,7 @@ LL | .take() = note: the following trait bounds were not satisfied: `Foo: Iterator` which is required by `&mut Foo: Iterator` -note: the following trait must be implemented +note: the trait `Iterator` must be implemented --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL = help: items from traits can only be used if the trait is implemented and in scope = note: the following trait defines an item `take`, perhaps you need to implement it: |
