From cc1ab3db8ba655508a6c8f649b2de32161a29f06 Mon Sep 17 00:00:00 2001 From: Esteban Küber Date: Tue, 10 Dec 2019 11:50:18 -0800 Subject: Suggest setting type param on function call --- src/test/ui/type/type-annotation-needed.stderr | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/test') 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>(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::` | = note: cannot resolve `_: std::convert::Into` -- cgit 1.4.1-3-g733a5