]> git.proxmox.com Git - rustc.git/blob - src/test/ui/span/type-annotations-needed-expr.stderr
New upstream version 1.41.1+dfsg1
[rustc.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 | ^^^
6 | |
7 | cannot infer type for type parameter `S`
8 | help: consider specifying the type argument in the method call: `sum::<S>`
9 |
10 = note: type must be known at this point
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0282`.