diff options
| author | csmoe <35686186+csmoe@users.noreply.github.com> | 2018-02-17 14:18:53 +0000 |
|---|---|---|
| committer | csmoe <35686186+csmoe@users.noreply.github.com> | 2018-02-17 14:18:53 +0000 |
| commit | 0be2dc8d9b4765e59cf9bbf3d342de00fa1b9aec (patch) | |
| tree | 11a3c7f7e64050cafaeba65fb2aa47cffee03e8c /src/test/ui/span | |
| parent | 20dcc72127b53e1b7388f430f7ed26144fe5dcf4 (diff) | |
| download | rust-0be2dc8d9b4765e59cf9bbf3d342de00fa1b9aec.tar.gz rust-0be2dc8d9b4765e59cf9bbf3d342de00fa1b9aec.zip | |
fix stderr
Diffstat (limited to 'src/test/ui/span')
| -rw-r--r-- | src/test/ui/span/issue-42234-unknown-receiver-type.stderr | 6 |
1 files changed, 4 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 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 |
