]>
Commit | Line | Data |
---|---|---|
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) |
10 | error[E0308]: mismatched types | |
11 | --> src/main.rs:22:21 | |
12 | | | |
13 | 22 | 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 | ||
19 | error: aborting due to previous error | |
20 | ||
21 | For more information about this error, try `rustc --explain E0308`. | |
fc512014 | 22 | error: could not compile `guessing_game` |
74b04a01 XL |
23 | |
24 | To learn more, run the command again with --verbose. |