error[E0282]: type annotations needed for `std::option::Option<_>`
- --> $DIR/issue-42234-unknown-receiver-type.rs:7:5
+ --> $DIR/issue-42234-unknown-receiver-type.rs:7:7
|
LL | let x: Option<_> = None;
| - consider giving `x` the explicit type `std::option::Option<_>`, where the type parameter `T` is specified
LL | x.unwrap().method_that_could_exist_on_some_type();
- | ^^^^^^^^^^ cannot infer type for `T`
+ | ^^^^^^ cannot infer type for `T`
|
= note: type must be known at this point