about summary refs log tree commit diff
path: root/src/test/ui/span
diff options
context:
space:
mode:
authorEsteban Küber <esteban@commure.com>2018-07-18 12:35:20 -0700
committerEsteban Küber <esteban@commure.com>2018-07-20 09:17:18 -0700
commite1ef8ba1427fb31329a4703eb3ef3e72ed0e7425 (patch)
tree9b585b88923d7fb716223230f983cdd354ac9542 /src/test/ui/span
parent509cbf3e8ecf1cf92b7051fa54e9360ad7b7449f (diff)
downloadrust-e1ef8ba1427fb31329a4703eb3ef3e72ed0e7425.tar.gz
rust-e1ef8ba1427fb31329a4703eb3ef3e72ed0e7425.zip
Reword when `_` couldn't be inferred
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/method-and-field-eager-resolution.stderr4
2 files changed, 3 insertions, 3 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 e1e13e9256d..d2d5a4a4b12 100644
--- a/src/test/ui/span/issue-42234-unknown-receiver-type.stderr
+++ b/src/test/ui/span/issue-42234-unknown-receiver-type.stderr
@@ -13,7 +13,7 @@ error[E0282]: type annotations needed
    |
 LL | /     data.iter() //~ ERROR 22:5: 23:20: type annotations needed
 LL | |         .sum::<_>()
-   | |___________________^ cannot infer type for `_`
+   | |___________________^ cannot infer type
    |
    = note: type must be known at this point
 
diff --git a/src/test/ui/span/method-and-field-eager-resolution.stderr b/src/test/ui/span/method-and-field-eager-resolution.stderr
index 21e19828a99..8a8c1e467b9 100644
--- a/src/test/ui/span/method-and-field-eager-resolution.stderr
+++ b/src/test/ui/span/method-and-field-eager-resolution.stderr
@@ -4,7 +4,7 @@ error[E0282]: type annotations needed
 LL |     let mut x = Default::default();
    |         ----- consider giving `x` a type
 LL |     x.0;
-   |     ^ cannot infer type for `_`
+   |     ^ cannot infer type
    |
    = note: type must be known at this point
 
@@ -14,7 +14,7 @@ error[E0282]: type annotations needed
 LL |     let mut x = Default::default();
    |         ----- consider giving `x` a type
 LL |     x[0];
-   |     ^ cannot infer type for `_`
+   |     ^ cannot infer type
    |
    = note: type must be known at this point