blob: f1319f4139585245c7f30276b1d4c423a725ebfc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
error[E0282]: type annotations needed
--> $DIR/E0282.rs:12:9
|
LL | let x = "hello".chars().rev().collect(); //~ ERROR E0282
| ^
| |
| cannot infer type for `_`
| consider giving `x` a type
error: aborting due to previous error
For more information about this error, try `rustc --explain E0282`.
|