summaryrefslogtreecommitdiffstats
path: root/src/doc/book/listings/ch03-common-programming-concepts/output-only-01-no-type-annotations/output.txt
blob: d9807cee0a2abe042d08cb5c41351fa0be214004 (plain)
1
2
3
4
5
6
7
8
9
10
$ cargo build
   Compiling no_type_annotations v0.1.0 (file:///projects/no_type_annotations)
error[E0282]: type annotations needed
 --> src/main.rs:2:9
  |
2 |     let guess = "42".parse().expect("Not a number!");
  |         ^^^^^ consider giving `guess` a type

For more information about this error, try `rustc --explain E0282`.
error: could not compile `no_type_annotations` due to previous error