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.
18 lines
638 B
18 lines
638 B
$ cargo build
|
|
Compiling guessing_game v0.1.0 (file:///projects/guessing_game)
|
|
warning: unused `Result` that must be used
|
|
--> src/main.rs:10:5
|
|
|
|
|
10 | io::stdin().read_line(&mut guess);
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: this `Result` may be an `Err` variant, which should be handled
|
|
= note: `#[warn(unused_must_use)]` on by default
|
|
help: use `let _ = ...` to ignore the resulting value
|
|
|
|
|
10 | let _ = io::stdin().read_line(&mut guess);
|
|
| +++++++
|
|
|
|
warning: `guessing_game` (bin "guessing_game") generated 1 warning
|
|
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.59s
|