Skip to content

Commit 0be2dc8

Browse files
committed
fix stderr
1 parent 20dcc72 commit 0be2dc8

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/test/ui/inference-variable-behind-raw-pointer.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
warning: type annotations needed
1+
warning: the type of this value must be known in this context
22
--> $DIR/inference-variable-behind-raw-pointer.rs:18:13
33
|
44
18 | if data.is_null() {}
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
error[E0282]: type annotations needed
22
--> $DIR/issue-42234-unknown-receiver-type.rs:17:5
33
|
4+
16 | let x: Option<_> = None;
5+
| - consider giving `x` a type
46
17 | x.unwrap().method_that_could_exist_on_some_type();
5-
| ^^^^^^^^^^
7+
| ^^^^^^^^^^ cannot infer type for `T`
68

79
error[E0282]: type annotations needed
810
--> $DIR/issue-42234-unknown-receiver-type.rs:22:5
911
|
1012
22 | / data.iter() //~ ERROR 22:5: 23:20: type annotations needed
1113
23 | | .sum::<_>()
12-
| |___________________^
14+
| |___________________^ cannot infer type for `_`
1315

1416
error: aborting due to 2 previous errors
1517

0 commit comments

Comments
 (0)