blob: 3c34b18ea5e88a6d3db9cbf978974d52a42807e1 [file]
error[E0282]: type annotations needed
--> $DIR/type-annotations-needed-expr.rs:2:39
|
LL | let _ = (vec![1,2,3]).into_iter().sum() as f64;
| ^^^ cannot infer type of the type parameter `S` declared on the method `sum`
|
help: consider specifying a concrete type for the type parameter `S`
|
LL | let _ = (vec![1,2,3]).into_iter().sum::</* Type */>() as f64;
| ++++++++++++++
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0282`.