diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-12-22 01:01:14 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-22 01:01:14 +0100 |
| commit | 66544b57f4d4392e893b8f54dd478d611f1dcc86 (patch) | |
| tree | cafcd948e8d7ffabeff75cc0ee3275142a68b3bc /src | |
| parent | ec7eb5b5ad8b43bd9d5d742d72e849deb1467e63 (diff) | |
| parent | 85a9d85435ec60b840f54a03460412c261517d12 (diff) | |
Rollup merge of #105985 - compiler-errors:method-chain-nitpicks, r=estebank
Method chain nitpicks Just fixing some little things I didn't see in review from that method chain PR. r? `@estebank`
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/ui/iterators/invalid-iterator-chain.stderr | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/ui/iterators/invalid-iterator-chain.stderr b/src/test/ui/iterators/invalid-iterator-chain.stderr index d76a4bfb7b3..f3dceca7e41 100644 --- a/src/test/ui/iterators/invalid-iterator-chain.stderr +++ b/src/test/ui/iterators/invalid-iterator-chain.stderr @@ -52,14 +52,14 @@ LL | .sum::<i32>(), <i32 as Sum<&'a i32>> <i32 as Sum> note: the method call chain might not have had the expected associated types - --> $DIR/invalid-iterator-chain.rs:20:14 + --> $DIR/invalid-iterator-chain.rs:25:14 | LL | vec![0, 1] | ---------- this expression has type `Vec<{integer}>` LL | .iter() | ------ `Iterator::Item` is `&{integer}` here LL | .map(|x| x * 2) - | ^^^^^^^^^^^^^^ `Iterator::Item` changed to `{integer}` here + | -------------- `Iterator::Item` changed to `{integer}` here LL | .map(|x| x as f64) | ----------------- `Iterator::Item` changed to `f64` here LL | .map(|x| x as i64) @@ -84,14 +84,14 @@ LL | .sum::<i32>(), <i32 as Sum<&'a i32>> <i32 as Sum> note: the method call chain might not have had the expected associated types - --> $DIR/invalid-iterator-chain.rs:32:14 + --> $DIR/invalid-iterator-chain.rs:33:14 | LL | vec![0, 1] | ---------- this expression has type `Vec<{integer}>` LL | .iter() | ------ `Iterator::Item` is `&{integer}` here LL | .map(|x| x * 2) - | ^^^^^^^^^^^^^^ `Iterator::Item` changed to `{integer}` here + | -------------- `Iterator::Item` changed to `{integer}` here LL | .map(|x| x as f64) | ^^^^^^^^^^^^^^^^^ `Iterator::Item` changed to `f64` here LL | .filter(|x| *x > 0.0) |
