mirror of https://github.com/KaiserY/trpl-zh-cn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
321 B
11 lines
321 B
$ cargo run
|
|
Compiling branches v0.1.0 (file:///projects/branches)
|
|
error[E0308]: mismatched types
|
|
--> src/main.rs:4:8
|
|
|
|
|
4 | if number {
|
|
| ^^^^^^ expected `bool`, found integer
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|
|
error: could not compile `branches` due to previous error
|