1 error[E0282]: type annotations needed
2 --> $DIR/issue-42234-unknown-receiver-type.rs:9:24
4 LL | let x: Option<_> = None;
5 | ^^^^ cannot infer type of the type parameter `T` declared on the enum `Option`
7 = note: type must be known at this point
8 help: consider specifying the generic argument
10 LL | let x: Option<_> = None::<T>;
13 error[E0282]: type annotations needed
14 --> $DIR/issue-42234-unknown-receiver-type.rs:15:10
17 | ^^^ cannot infer type of the type parameter `S` declared on the associated function `sum`
19 = note: type must be known at this point
20 help: consider specifying the generic argument
25 error: aborting due to 2 previous errors
27 For more information about this error, try `rustc --explain E0282`.