]> git.proxmox.com Git - rustc.git/blob - src/doc/book/listings/ch03-common-programming-concepts/output-only-01-no-type-annotations/output.txt
New upstream version 1.67.1+dfsg1
[rustc.git] / src / doc / book / listings / ch03-common-programming-concepts / output-only-01-no-type-annotations / output.txt
1 $ cargo build
2 Compiling no_type_annotations v0.1.0 (file:///projects/no_type_annotations)
3 error[E0282]: type annotations needed
4 --> src/main.rs:2:9
5 |
6 2 | let guess = "42".parse().expect("Not a number!");
7 | ^^^^^
8 |
9 help: consider giving `guess` an explicit type
10 |
11 2 | let guess: _ = "42".parse().expect("Not a number!");
12 | +++
13
14 For more information about this error, try `rustc --explain E0282`.
15 error: could not compile `no_type_annotations` due to previous error