diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-12-14 10:31:07 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-14 10:31:07 +0100 |
| commit | e5fde968dbbb87e5721ff5da91a49cab88b90b91 (patch) | |
| tree | f4231abd6871b3db90878f69a953115e36fcc2d7 /src/test/ui/error-codes | |
| parent | c8fd654d7ce2ab5a4945cead8a947f923b98f5a5 (diff) | |
| parent | 40a62758a7db892a47cb59de85612e8a5b9ab267 (diff) | |
| download | rust-e5fde968dbbb87e5721ff5da91a49cab88b90b91.tar.gz rust-e5fde968dbbb87e5721ff5da91a49cab88b90b91.zip | |
Rollup merge of #105523 - estebank:suggest-collect-vec, r=compiler-errors
Suggest `collect`ing into `Vec<_>` Fix #105510.
Diffstat (limited to 'src/test/ui/error-codes')
| -rw-r--r-- | src/test/ui/error-codes/E0282.stderr | 4 | ||||
| -rw-r--r-- | src/test/ui/error-codes/E0401.stderr | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/test/ui/error-codes/E0282.stderr b/src/test/ui/error-codes/E0282.stderr index d01aa3617c7..892d3a81f27 100644 --- a/src/test/ui/error-codes/E0282.stderr +++ b/src/test/ui/error-codes/E0282.stderr @@ -6,8 +6,8 @@ LL | let x = "hello".chars().rev().collect(); | help: consider giving `x` an explicit type | -LL | let x: _ = "hello".chars().rev().collect(); - | +++ +LL | let x: Vec<_> = "hello".chars().rev().collect(); + | ++++++++ error: aborting due to previous error diff --git a/src/test/ui/error-codes/E0401.stderr b/src/test/ui/error-codes/E0401.stderr index 9687eca61fa..fa4b91cacef 100644 --- a/src/test/ui/error-codes/E0401.stderr +++ b/src/test/ui/error-codes/E0401.stderr @@ -59,7 +59,7 @@ note: required by a bound in `bfnr` | LL | fn bfnr<U, V: Baz<U>, W: Fn()>(y: T) { | ^^^^ required by this bound in `bfnr` -help: consider specifying the type arguments in the function call +help: consider specifying the generic arguments | LL | bfnr::<U, V, W>(x); | +++++++++++ |
