]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/type-annotations-needed-expr.stderr
Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a9d466af9eb613bb'
[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 of the type parameter `S` declared on the associated function `sum`
6    |
7 help: consider specifying the generic argument
8    |
9 LL |     let _ = (vec![1,2,3]).into_iter().sum::<S>() as f64;
10    |                                          +++++
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0282`.