]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/type-annotations-needed-expr.stderr
Rollup merge of #87922 - Manishearth:c-enum-target-spec, r=nagisa,eddyb
[rust.git] / src / test / ui / span / type-annotations-needed-expr.stderr
1 error[E0282]: type annotations needed
2   --> $DIR/type-annotations-needed-expr.rs:2:39
3    |
4 LL |     let _ = (vec![1,2,3]).into_iter().sum() as f64;
5    |                                       ^^^ cannot infer type for type parameter `S` declared on the associated function `sum`
6    |
7    = note: type must be known at this point
8 help: consider specifying the type argument in the method call
9    |
10 LL |     let _ = (vec![1,2,3]).into_iter().sum::<S>() as f64;
11    |                                          +++++
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0282`.