diff options
| author | Michael Goulet <michael@errs.io> | 2023-09-10 03:21:52 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-10-02 23:14:29 +0000 |
| commit | 8be12f4ed70c55652fefdec63d094974d00e164c (patch) | |
| tree | cd1f669282689ebbdd9dca9332b2a4a51cb840b5 /tests/ui/iterators | |
| parent | 5333b878c8bc1c4267a67ea3682663629e47541a (diff) | |
| download | rust-8be12f4ed70c55652fefdec63d094974d00e164c.tar.gz rust-8be12f4ed70c55652fefdec63d094974d00e164c.zip | |
For a single impl candidate, try to unify it with error trait ref
Diffstat (limited to 'tests/ui/iterators')
| -rw-r--r-- | tests/ui/iterators/invalid-iterator-chain.stderr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/iterators/invalid-iterator-chain.stderr b/tests/ui/iterators/invalid-iterator-chain.stderr index b355da5cb76..1d7cf039972 100644 --- a/tests/ui/iterators/invalid-iterator-chain.stderr +++ b/tests/ui/iterators/invalid-iterator-chain.stderr @@ -5,7 +5,7 @@ LL | i.collect() | ^^^^^^^ value of type `Vec<X>` cannot be built from `std::iter::Iterator<Item=&X>` | = help: the trait `FromIterator<&X>` is not implemented for `Vec<X>` - = help: the trait `FromIterator<T>` is implemented for `Vec<T>` + = help: the trait `FromIterator<X>` is implemented for `Vec<X>` note: the method call chain might not have had the expected associated types --> $DIR/invalid-iterator-chain.rs:4:26 | @@ -159,7 +159,7 @@ LL | let g: Vec<i32> = f.collect(); | ^^^^^^^ value of type `Vec<i32>` cannot be built from `std::iter::Iterator<Item=()>` | = help: the trait `FromIterator<()>` is not implemented for `Vec<i32>` - = help: the trait `FromIterator<T>` is implemented for `Vec<T>` + = help: the trait `FromIterator<i32>` is implemented for `Vec<i32>` note: the method call chain might not have had the expected associated types --> $DIR/invalid-iterator-chain.rs:44:15 | |
