From da023c0c6f3cdc72d72ef047c2dadb1a59c646df Mon Sep 17 00:00:00 2001 From: Esteban Küber Date: Wed, 11 Dec 2019 17:06:24 -0800 Subject: Add more context for type parameters --- src/test/ui/span/issue-42234-unknown-receiver-type.stderr | 2 +- src/test/ui/span/type-annotations-needed-expr.stderr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/test/ui/span') diff --git a/src/test/ui/span/issue-42234-unknown-receiver-type.stderr b/src/test/ui/span/issue-42234-unknown-receiver-type.stderr index 093a6f6f3eb..9824d879dbd 100644 --- a/src/test/ui/span/issue-42234-unknown-receiver-type.stderr +++ b/src/test/ui/span/issue-42234-unknown-receiver-type.stderr @@ -4,7 +4,7 @@ error[E0282]: type annotations needed for `std::option::Option<_>` LL | let x: Option<_> = None; | - consider giving `x` the explicit type `std::option::Option<_>`, where the type parameter `T` is specified LL | x.unwrap().method_that_could_exist_on_some_type(); - | ^^^^^^ cannot infer type for `T` + | ^^^^^^ cannot infer type for type parameter `T` | = note: type must be known at this point diff --git a/src/test/ui/span/type-annotations-needed-expr.stderr b/src/test/ui/span/type-annotations-needed-expr.stderr index bc1c2f6164b..8366285edcd 100644 --- a/src/test/ui/span/type-annotations-needed-expr.stderr +++ b/src/test/ui/span/type-annotations-needed-expr.stderr @@ -4,7 +4,7 @@ error[E0282]: type annotations needed LL | let _ = (vec![1,2,3]).into_iter().sum() as f64; | ^^^ | | - | cannot infer type for `S` + | cannot infer type for type parameter `S` | help: consider specifying the type argument in the method call: `sum::` | = note: type must be known at this point -- cgit 1.4.1-3-g733a5