|
# command |
|
``` |
|
cargo run |
|
``` |
|
|
|
# log |
|
``` |
|
chiya@ujimatsu:~/Works/hello_rust/hello_rust$ cargo run |
|
Compiling hello_rust v0.1.0 (/home/chiya/Works/hello_rust/hello_rust) |
|
warning: unused variable: `n` |
|
--> src/main.rs:2:9 |
|
| |
|
2 | for n in 1..3 { |
|
| ^ help: if this is intentional, prefix it with an underscore: `_n` |
|
| |
|
= note: `#[warn(unused_variables)]` on by default |
|
|
|
warning: `hello_rust` (bin "hello_rust") generated 1 warning |
|
Finished dev [unoptimized + debuginfo] target(s) in 0.29s |
|
Running `target/debug/hello_rust` |
|
Hello, world! |
|
Hello, world! |
|
chiya@ujimatsu:~/Works/hello_rust/hello_rust$ cargo run |
|
Compiling hello_rust v0.1.0 (/home/chiya/Works/hello_rust/hello_rust) |
|
warning: unused variable: `n` |
|
--> src/main.rs:2:9 |
|
| |
|
2 | for n in 1..5 { |
|
| ^ help: if this is intentional, prefix it with an underscore: `_n` |
|
| |
|
= note: `#[warn(unused_variables)]` on by default |
|
|
|
warning: `hello_rust` (bin "hello_rust") generated 1 warning |
|
Finished dev [unoptimized + debuginfo] target(s) in 0.26s |
|
Running `target/debug/hello_rust` |
|
Hello, world! |
|
Hello, world! |
|
Hello, world! |
|
Hello, world! |
|
chiya@ujimatsu:~/Works/hello_rust/hello_rust$ cd .. |
|
chiya@ujimatsu:~/Works/hello_rust$ mv hello_rust hello_rust_for_loop |
|
chiya@ujimatsu:~/Works/hello_rust$ cd hello_rust_for_loop/ |
|
chiya@ujimatsu:~/Works/hello_rust/hello_rust_for_loop$ cargo run |
|
warning: unused variable: `n` |
|
--> src/main.rs:2:9 |
|
| |
|
2 | for n in 1..5 { |
|
| ^ help: if this is intentional, prefix it with an underscore: `_n` |
|
| |
|
= note: `#[warn(unused_variables)]` on by default |
|
|
|
warning: `hello_rust` (bin "hello_rust") generated 1 warning |
|
Finished dev [unoptimized + debuginfo] target(s) in 0.00s |
|
Running `target/debug/hello_rust` |
|
Hello, world! |
|
Hello, world! |
|
Hello, world! |
|
Hello, world! |
|
chiya@ujimatsu:~/Works/hello_rust/hello_rust_for_loop$ cargo run |
|
warning: unused variable: `n` |
|
--> src/main.rs:2:9 |
|
| |
|
2 | for n in 1..5 { |
|
| ^ help: if this is intentional, prefix it with an underscore: `_n` |
|
| |
|
= note: `#[warn(unused_variables)]` on by default |
|
|
|
warning: `hello_rust` (bin "hello_rust") generated 1 warning |
|
Finished dev [unoptimized + debuginfo] target(s) in 0.00s |
|
Running `target/debug/hello_rust` |
|
Hello, world! |
|
Hello, world! |
|
Hello, world! |
|
Hello, world! |
|
chiya@ujimatsu:~/Works/hello_rust/hello_rust_for_loop$ cargo run |
|
warning: unused variable: `n` |
|
--> src/main.rs:2:9 |
|
| |
|
2 | for n in 1..5 { |
|
| ^ help: if this is intentional, prefix it with an underscore: `_n` |
|
| |
|
= note: `#[warn(unused_variables)]` on by default |
|
|
|
warning: `hello_rust` (bin "hello_rust") generated 1 warning |
|
Finished dev [unoptimized + debuginfo] target(s) in 0.00s |
|
Running `target/debug/hello_rust` |
|
Hello, world! |
|
Hello, world! |
|
Hello, world! |
|
Hello, world! |
|
chiya@ujimatsu:~/Works/hello_rust/hello_rust_for_loop$ cargo run |
|
warning: unused variable: `n` |
|
--> src/main.rs:2:9 |
|
| |
|
2 | for n in 1..5 { |
|
| ^ help: if this is intentional, prefix it with an underscore: `_n` |
|
| |
|
= note: `#[warn(unused_variables)]` on by default |
|
|
|
warning: `hello_rust` (bin "hello_rust") generated 1 warning |
|
Finished dev [unoptimized + debuginfo] target(s) in 0.00s |
|
Running `target/debug/hello_rust` |
|
Hello, world! |
|
Hello, world! |
|
Hello, world! |
|
Hello, world! |
|
chiya@ujimatsu:~/Works/hello_rust/hello_rust_for_loop$ cd .. |
|
chiya@ujimatsu:~/Works/hello_rust$ cd hello_rust |
|
chiya@ujimatsu:~/Works/hello_rust/hello_rust$ ls |
|
src |
|
chiya@ujimatsu:~/Works/hello_rust/hello_rust$ cargo run |
|
error: could not find `Cargo.toml` in `/home/chiya/Works/hello_rust/hello_rust` or any parent directory |
|
chiya@ujimatsu:~/Works/hello_rust/hello_rust$ cd .. |
|
chiya@ujimatsu:~/Works/hello_rust$ rm -rf ./hello_rust |
|
chiya@ujimatsu:~/Works/hello_rust$ cd hello_rust_for_loop/ |
|
chiya@ujimatsu:~/Works/hello_rust/hello_rust_for_loop$ cargo run |
|
Compiling hello_rust v0.1.0 (/home/chiya/Works/hello_rust/hello_rust_for_loop) |
|
Finished dev [unoptimized + debuginfo] target(s) in 0.28s |
|
Running `target/debug/hello_rust` |
|
Hello, world! 1 |
|
Hello, world! 2 |
|
Hello, world! 3 |
|
Hello, world! 4 |
|
``` |