forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#48198 - csmoe:inform_type_annotations, r=es…
…tebank Fixes rust-lang#47311. r? @nrc
- Loading branch information
Showing
14 changed files
with
20 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
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 | ||
| | ||
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[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::<_>() | ||
| |___________________^ | ||
| |___________________^ cannot infer type for `_` | ||
|
||
error: aborting due to 2 previous errors | ||
|