diff options
| author | bors <bors@rust-lang.org> | 2021-10-06 06:20:25 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-10-06 06:20:25 +0000 |
| commit | d7539a6af09e5889ed9bcb8b49571b7a59c32e65 (patch) | |
| tree | 50da309ff23a14082fa4ef682197dfc42591f93d /src/test/ui/methods/method-call-err-msg.stderr | |
| parent | 98a5a98f44130b5bafb4f2b2f3126fb22a5a3228 (diff) | |
| parent | e8fc076f231699d9a44fc44a1e298ea4f70fdb48 (diff) | |
Auto merge of #89323 - estebank:derive-binop, r=petrochenkov
Consider unfulfilled obligations in binop errors When encountering a binop where the types would have been accepted, if all the predicates had been fulfilled, include information about the predicates and suggest appropriate `#[derive]`s if possible. Fix #84515.
Diffstat (limited to 'src/test/ui/methods/method-call-err-msg.stderr')
| -rw-r--r-- | src/test/ui/methods/method-call-err-msg.stderr | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/methods/method-call-err-msg.stderr b/src/test/ui/methods/method-call-err-msg.stderr index ffeacfe15dd..c1183e053eb 100644 --- a/src/test/ui/methods/method-call-err-msg.stderr +++ b/src/test/ui/methods/method-call-err-msg.stderr @@ -55,6 +55,17 @@ 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 + --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL + | +LL | / pub trait Iterator { +LL | | /// The type of the elements being iterated over. +LL | | #[stable(feature = "rust1", since = "1.0.0")] +LL | | type Item; +... | +LL | | } +LL | | } + | |_^ = 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: candidate #1: `Iterator` |
