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/span | |
| parent | c8fd654d7ce2ab5a4945cead8a947f923b98f5a5 (diff) | |
| parent | 40a62758a7db892a47cb59de85612e8a5b9ab267 (diff) | |
Rollup merge of #105523 - estebank:suggest-collect-vec, r=compiler-errors
Suggest `collect`ing into `Vec<_>` Fix #105510.
Diffstat (limited to 'src/test/ui/span')
| -rw-r--r-- | src/test/ui/span/method-and-field-eager-resolution.stderr | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/ui/span/method-and-field-eager-resolution.stderr b/src/test/ui/span/method-and-field-eager-resolution.stderr index 7d240589a3f..f6efbe40bc2 100644 --- a/src/test/ui/span/method-and-field-eager-resolution.stderr +++ b/src/test/ui/span/method-and-field-eager-resolution.stderr @@ -9,8 +9,8 @@ LL | x.0; | help: consider giving `x` an explicit type | -LL | let mut x: _ = Default::default(); - | +++ +LL | let mut x: /* Type */ = Default::default(); + | ++++++++++++ error[E0282]: type annotations needed --> $DIR/method-and-field-eager-resolution.rs:11:9 @@ -23,8 +23,8 @@ LL | x[0]; | help: consider giving `x` an explicit type | -LL | let mut x: _ = Default::default(); - | +++ +LL | let mut x: /* Type */ = Default::default(); + | ++++++++++++ error: aborting due to 2 previous errors |
