Get your own website
error[E0282]: type annotations needed
 --> prog.rs:3:7
  |
3 |   let doubled = prices.iter().map(|x| x * 2).collect();
  |       ^^^^^^^ consider giving `doubled` a type

error: aborting due to previous error

For more information about this error, try `rustc --explain E0282`.