summary refs log tree commit diff
path: root/src/test/ui/span
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2019-12-11 17:06:24 -0800
committerEsteban Küber <esteban@kuber.com.ar>2019-12-11 17:18:43 -0800
commitda023c0c6f3cdc72d72ef047c2dadb1a59c646df (patch)
tree7a261302263e46ff5c481466846c7affcab2cfc3 /src/test/ui/span
parent45550ef2ff47020ab8af5feb08669c8c4ab879e9 (diff)
downloadrust-da023c0c6f3cdc72d72ef047c2dadb1a59c646df.tar.gz
rust-da023c0c6f3cdc72d72ef047c2dadb1a59c646df.zip
Add more context for type parameters
Diffstat (limited to 'src/test/ui/span')
-rw-r--r--src/test/ui/span/issue-42234-unknown-receiver-type.stderr2
-rw-r--r--src/test/ui/span/type-annotations-needed-expr.stderr2
2 files changed, 2 insertions, 2 deletions
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::<S>`
    |
    = note: type must be known at this point