diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2019-12-10 11:50:18 -0800 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2019-12-10 12:02:18 -0800 |
| commit | cc1ab3db8ba655508a6c8f649b2de32161a29f06 (patch) | |
| tree | 156c23f1773bdd3c513eb4208d8188c81a28e143 /src/test | |
| parent | 2924d38dd9ba0502264d5b8652ffd65f3f43f0df (diff) | |
| download | rust-cc1ab3db8ba655508a6c8f649b2de32161a29f06.tar.gz rust-cc1ab3db8ba655508a6c8f649b2de32161a29f06.zip | |
Suggest setting type param on function call
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/ui/type/type-annotation-needed.stderr | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/ui/type/type-annotation-needed.stderr b/src/test/ui/type/type-annotation-needed.stderr index f30bbf6b7db..5b7d6ba16d0 100644 --- a/src/test/ui/type/type-annotation-needed.stderr +++ b/src/test/ui/type/type-annotation-needed.stderr @@ -5,7 +5,10 @@ LL | fn foo<T: Into<String>>(x: i32) {} | --- ------------ required by this bound in `foo` ... LL | foo(42); - | ^^^ cannot infer type for `T` + | ^^^ + | | + | cannot infer type for `T` + | help: consider specifying the type argument in the function call: `foo::<T>` | = note: cannot resolve `_: std::convert::Into<std::string::String>` |
