2019-03-26 20:21:36 +00:00
|
|
|
$ cargo run the poem.txt
|
|
|
|
Compiling minigrep v0.1.0 (file:///projects/minigrep)
|
2021-05-07 01:20:05 +00:00
|
|
|
warning: unused `Result` that must be used
|
2019-03-26 20:21:36 +00:00
|
|
|
--> src/main.rs:19:5
|
|
|
|
|
|
|
|
|
19 | run(config);
|
2023-02-10 16:01:09 +00:00
|
|
|
| ^^^^^^^^^^^
|
2019-03-26 20:21:36 +00:00
|
|
|
|
|
|
|
|
= note: this `Result` may be an `Err` variant, which should be handled
|
2023-02-10 15:55:43 +00:00
|
|
|
= note: `#[warn(unused_must_use)]` on by default
|
2019-03-26 20:21:36 +00:00
|
|
|
|
2021-09-16 01:49:30 +00:00
|
|
|
warning: `minigrep` (bin "minigrep") generated 1 warning
|
2019-03-26 20:21:36 +00:00
|
|
|
Finished dev [unoptimized + debuginfo] target(s) in 0.71s
|
|
|
|
Running `target/debug/minigrep the poem.txt`
|
|
|
|
Searching for the
|
|
|
|
In file poem.txt
|
|
|
|
With text:
|
2020-12-23 02:02:56 +00:00
|
|
|
I'm nobody! Who are you?
|
2019-03-26 20:21:36 +00:00
|
|
|
Are you nobody, too?
|
2020-12-23 02:02:56 +00:00
|
|
|
Then there's a pair of us - don't tell!
|
|
|
|
They'd banish us, you know.
|
2019-03-26 20:21:36 +00:00
|
|
|
|
|
|
|
How dreary to be somebody!
|
|
|
|
How public, like a frog
|
|
|
|
To tell your name the livelong day
|
|
|
|
To an admiring bog!
|
|
|
|
|