]> git.proxmox.com Git - rustc.git/blame - src/doc/book/listings/ch02-guessing-game-tutorial/listing-02-04/output.txt
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / doc / book / listings / ch02-guessing-game-tutorial / listing-02-04 / output.txt
CommitLineData
74b04a01 1$ cargo build
6a06907d
XL
2 Compiling libc v0.2.86
3 Compiling getrandom v0.2.2
4 Compiling cfg-if v1.0.0
5 Compiling ppv-lite86 v0.2.10
6 Compiling rand_core v0.6.2
7 Compiling rand_chacha v0.3.0
8 Compiling rand v0.8.3
74b04a01
XL
9 Compiling guessing_game v0.1.0 (file:///projects/guessing_game)
10error[E0308]: mismatched types
11 --> src/main.rs:22:21
12 |
1322 | match guess.cmp(&secret_number) {
fc512014 14 | ^^^^^^^^^^^^^^ expected struct `String`, found integer
74b04a01 15 |
fc512014 16 = note: expected reference `&String`
74b04a01
XL
17 found reference `&{integer}`
18
19error: aborting due to previous error
20
21For more information about this error, try `rustc --explain E0308`.
fc512014 22error: could not compile `guessing_game`
74b04a01
XL
23
24To learn more, run the command again with --verbose.