about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorcsmoe <35686186+csmoe@users.noreply.github.com>2018-02-17 14:18:53 +0000
committercsmoe <35686186+csmoe@users.noreply.github.com>2018-02-17 14:18:53 +0000
commit0be2dc8d9b4765e59cf9bbf3d342de00fa1b9aec (patch)
tree11a3c7f7e64050cafaeba65fb2aa47cffee03e8c /src
parent20dcc72127b53e1b7388f430f7ed26144fe5dcf4 (diff)
downloadrust-0be2dc8d9b4765e59cf9bbf3d342de00fa1b9aec.tar.gz
rust-0be2dc8d9b4765e59cf9bbf3d342de00fa1b9aec.zip
fix stderr
Diffstat (limited to 'src')
-rw-r--r--src/test/ui/inference-variable-behind-raw-pointer.stderr2
-rw-r--r--src/test/ui/span/issue-42234-unknown-receiver-type.stderr6
2 files changed, 5 insertions, 3 deletions
diff --git a/src/test/ui/inference-variable-behind-raw-pointer.stderr b/src/test/ui/inference-variable-behind-raw-pointer.stderr
index bb1d921f1c6..d0ee55c092b 100644
--- a/src/test/ui/inference-variable-behind-raw-pointer.stderr
+++ b/src/test/ui/inference-variable-behind-raw-pointer.stderr
@@ -1,4 +1,4 @@
-warning: type annotations needed
+warning: the type of this value must be known in this context
   --> $DIR/inference-variable-behind-raw-pointer.rs:18:13
    |
 18 |     if data.is_null() {}
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 2a85e1f1c45..d87cec642f1 100644
--- a/src/test/ui/span/issue-42234-unknown-receiver-type.stderr
+++ b/src/test/ui/span/issue-42234-unknown-receiver-type.stderr
@@ -1,15 +1,17 @@
 error[E0282]: type annotations needed
   --> $DIR/issue-42234-unknown-receiver-type.rs:17:5
    |
+16 |     let x: Option<_> = None;
+   |         - consider giving `x` a type
 17 |     x.unwrap().method_that_could_exist_on_some_type();
-   |     ^^^^^^^^^^
+   |     ^^^^^^^^^^ cannot infer type for `T`
 
 error[E0282]: type annotations needed
   --> $DIR/issue-42234-unknown-receiver-type.rs:22:5
    |
 22 | /     data.iter() //~ ERROR 22:5: 23:20: type annotations needed
 23 | |         .sum::<_>()
-   | |___________________^
+   | |___________________^ cannot infer type for `_`
 
 error: aborting due to 2 previous errors