diff options
| author | csmoe <35686186+csmoe@users.noreply.github.com> | 2018-02-14 11:06:08 +0800 |
|---|---|---|
| committer | csmoe <35686186+csmoe@users.noreply.github.com> | 2018-02-14 11:06:08 +0800 |
| commit | 20dcc72127b53e1b7388f430f7ed26144fe5dcf4 (patch) | |
| tree | a12ec4a162a224c9c28a67a59e97992087e6160c /src/test/ui/span | |
| parent | 4d2d3fc5dadf894a8ad709a5860a549f2c0b1032 (diff) | |
| download | rust-20dcc72127b53e1b7388f430f7ed26144fe5dcf4.tar.gz rust-20dcc72127b53e1b7388f430f7ed26144fe5dcf4.zip | |
inform type annotations
Diffstat (limited to 'src/test/ui/span')
| -rw-r--r-- | src/test/ui/span/issue-42234-unknown-receiver-type.rs | 4 | ||||
| -rw-r--r-- | src/test/ui/span/issue-42234-unknown-receiver-type.stderr | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/test/ui/span/issue-42234-unknown-receiver-type.rs b/src/test/ui/span/issue-42234-unknown-receiver-type.rs index d9cdd99c245..975c81955e0 100644 --- a/src/test/ui/span/issue-42234-unknown-receiver-type.rs +++ b/src/test/ui/span/issue-42234-unknown-receiver-type.rs @@ -15,11 +15,11 @@ fn shines_a_beacon_through_the_darkness() { let x: Option<_> = None; x.unwrap().method_that_could_exist_on_some_type(); - //~^ ERROR 17:5: 17:15: the type of this value must be known in this context + //~^ ERROR 17:5: 17:15: type annotations needed } fn courier_to_des_moines_and_points_west(data: &[u32]) -> String { - data.iter() //~ ERROR 22:5: 23:20: the type of this value must be known in this context + data.iter() //~ ERROR 22:5: 23:20: type annotations needed .sum::<_>() .to_string() } 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 ed756cdc553..2a85e1f1c45 100644 --- a/src/test/ui/span/issue-42234-unknown-receiver-type.stderr +++ b/src/test/ui/span/issue-42234-unknown-receiver-type.stderr @@ -1,13 +1,13 @@ -error[E0619]: the type of this value must be known in this context +error[E0282]: type annotations needed --> $DIR/issue-42234-unknown-receiver-type.rs:17:5 | 17 | x.unwrap().method_that_could_exist_on_some_type(); | ^^^^^^^^^^ -error[E0619]: the type of this value must be known in this context +error[E0282]: type annotations needed --> $DIR/issue-42234-unknown-receiver-type.rs:22:5 | -22 | / data.iter() //~ ERROR 22:5: 23:20: the type of this value must be known in this context +22 | / data.iter() //~ ERROR 22:5: 23:20: type annotations needed 23 | | .sum::<_>() | |___________________^ |
