diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2024-10-24 22:38:50 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2024-11-02 03:08:04 +0000 |
| commit | 7b9105dd8865ef10ef8d5f2f7bc3da180aec9dd2 (patch) | |
| tree | 1904cc4834cb273b115469fb5e49b1007ca4285e /tests/ui/iterators | |
| parent | b7fc1a743122e3c45f105a5d1169a042a2c6e8bf (diff) | |
| download | rust-7b9105dd8865ef10ef8d5f2f7bc3da180aec9dd2.tar.gz rust-7b9105dd8865ef10ef8d5f2f7bc3da180aec9dd2.zip | |
Trim output of E0277 in some cases
Remove default note for "trait is not implemented" in favor of the more colorful diff output from the previous commit. Removes duplicated output.
Diffstat (limited to 'tests/ui/iterators')
| -rw-r--r-- | tests/ui/iterators/invalid-iterator-chain-fixable.stderr | 2 | ||||
| -rw-r--r-- | tests/ui/iterators/invalid-iterator-chain.stderr | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/tests/ui/iterators/invalid-iterator-chain-fixable.stderr b/tests/ui/iterators/invalid-iterator-chain-fixable.stderr index d6f82741c4c..09439fe8fbd 100644 --- a/tests/ui/iterators/invalid-iterator-chain-fixable.stderr +++ b/tests/ui/iterators/invalid-iterator-chain-fixable.stderr @@ -6,7 +6,6 @@ LL | let i = i.map(|x| x.clone()); 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<&_>` is not implemented for `Vec<X>` but trait `FromIterator<_>` is implemented for it = help: for that trait implementation, expected `X`, found `&X` @@ -125,7 +124,6 @@ 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<()>` is not implemented for `Vec<i32>` but trait `FromIterator<i32>` is implemented for it = help: for that trait implementation, expected `i32`, found `()` note: the method call chain might not have had the expected associated types diff --git a/tests/ui/iterators/invalid-iterator-chain.stderr b/tests/ui/iterators/invalid-iterator-chain.stderr index 2522471b3b5..b810e06d0f7 100644 --- a/tests/ui/iterators/invalid-iterator-chain.stderr +++ b/tests/ui/iterators/invalid-iterator-chain.stderr @@ -6,7 +6,6 @@ LL | let i = i.map(|x| x.clone()); 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<&_>` is not implemented for `Vec<X>` but trait `FromIterator<_>` is implemented for it = help: for that trait implementation, expected `X`, found `&X` @@ -182,7 +181,6 @@ 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<()>` is not implemented for `Vec<i32>` but trait `FromIterator<i32>` is implemented for it = help: for that trait implementation, expected `i32`, found `()` note: the method call chain might not have had the expected associated types |
