diff options
| author | lcnr <rust@lcnr.de> | 2022-02-14 13:25:26 +0100 |
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2022-06-02 10:19:15 +0200 |
| commit | 3fe346e7a3776d01541fc973c4a7bb686ef3b1a8 (patch) | |
| tree | e890126d4103bf4c098a2803e0e4982d79650ed9 /src/test/ui/methods | |
| parent | 721fc7320850596a20ad417397f5fc8820cd87da (diff) | |
add new `emit_inference_failure_err`
Diffstat (limited to 'src/test/ui/methods')
| -rw-r--r-- | src/test/ui/methods/method-ambig-one-trait-unknown-int-type.stderr | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/test/ui/methods/method-ambig-one-trait-unknown-int-type.stderr b/src/test/ui/methods/method-ambig-one-trait-unknown-int-type.stderr index f33672433de..66e7ada3ac5 100644 --- a/src/test/ui/methods/method-ambig-one-trait-unknown-int-type.stderr +++ b/src/test/ui/methods/method-ambig-one-trait-unknown-int-type.stderr @@ -1,10 +1,13 @@ error[E0282]: type annotations needed for `Vec<T>` - --> $DIR/method-ambig-one-trait-unknown-int-type.rs:24:17 + --> $DIR/method-ambig-one-trait-unknown-int-type.rs:24:9 | LL | let mut x = Vec::new(); - | ----- ^^^^^^^^ cannot infer type for type parameter `T` - | | - | consider giving `x` the explicit type `Vec<T>`, where the type parameter `T` is specified + | ^^^^^ + | +help: consider giving `x` an explicit type, where the type for type parameter `T` is specified + | +LL | let mut x: Vec<T> = Vec::new(); + | ++++++++ error[E0283]: type annotations needed --> $DIR/method-ambig-one-trait-unknown-int-type.rs:26:7 |
