Compiling solution v0.1.0 (/tmp/d20211017-167546-pmsdj/solution)
Finished test [unoptimized + debuginfo] target(s) in 2.19s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-1lgrc3/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.21s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-11trip1/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.29s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-1oijm5s/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.31s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-ezlj7v/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.24s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-1i2r59m/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.24s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-p8prfa/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.29s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-gopgn2/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.30s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-ahvj03/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.32s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-54nxk4/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.22s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-9njvjb/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.78s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-14v3pzx/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.36s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-hoysk7/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.26s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-u0ibfa/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.23s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-qde08m/solution)
error[E0425]: cannot find function `fib` in this scope
--> tests/solution_test.rs:8:16
|
8 | assert_eq!(fib(0), 0);
| ^^^ help: a function with a similar name exists: `fibn`
|
::: /tmp/d20211017-167546-qde08m/solution/src/lib.rs:1:1
|
1 | pub fn fibn(n: u32) -> u32 {
| -------------------------- similarly named function `fibn` defined here
error[E0425]: cannot find function `fib` in this scope
--> tests/solution_test.rs:9:16
|
9 | assert_eq!(fib(1), 1);
| ^^^ help: a function with a similar name exists: `fibn`
|
::: /tmp/d20211017-167546-qde08m/solution/src/lib.rs:1:1
|
1 | pub fn fibn(n: u32) -> u32 {
| -------------------------- similarly named function `fibn` defined here
error[E0425]: cannot find function `fib` in this scope
--> tests/solution_test.rs:10:16
|
10 | assert_eq!(fib(2), 0 + 1);
| ^^^ help: a function with a similar name exists: `fibn`
|
::: /tmp/d20211017-167546-qde08m/solution/src/lib.rs:1:1
|
1 | pub fn fibn(n: u32) -> u32 {
| -------------------------- similarly named function `fibn` defined here
error[E0425]: cannot find function `fib` in this scope
--> tests/solution_test.rs:11:16
|
11 | assert_eq!(fib(3), 1 + 1);
| ^^^ help: a function with a similar name exists: `fibn`
|
::: /tmp/d20211017-167546-qde08m/solution/src/lib.rs:1:1
|
1 | pub fn fibn(n: u32) -> u32 {
| -------------------------- similarly named function `fibn` defined here
error[E0425]: cannot find function `fib` in this scope
--> tests/solution_test.rs:12:16
|
12 | assert_eq!(fib(4), 1 + 2);
| ^^^ help: a function with a similar name exists: `fibn`
|
::: /tmp/d20211017-167546-qde08m/solution/src/lib.rs:1:1
|
1 | pub fn fibn(n: u32) -> u32 {
| -------------------------- similarly named function `fibn` defined here
error[E0425]: cannot find function `fib` in this scope
--> tests/solution_test.rs:13:16
|
13 | assert_eq!(fib(5), 2 + 3);
| ^^^ help: a function with a similar name exists: `fibn`
|
::: /tmp/d20211017-167546-qde08m/solution/src/lib.rs:1:1
|
1 | pub fn fibn(n: u32) -> u32 {
| -------------------------- similarly named function `fibn` defined here
error[E0425]: cannot find function `fib` in this scope
--> tests/solution_test.rs:14:16
|
14 | assert_eq!(fib(6), 3 + 5);
| ^^^ help: a function with a similar name exists: `fibn`
|
::: /tmp/d20211017-167546-qde08m/solution/src/lib.rs:1:1
|
1 | pub fn fibn(n: u32) -> u32 {
| -------------------------- similarly named function `fibn` defined here
error[E0425]: cannot find function `fib` in this scope
--> tests/solution_test.rs:15:16
|
15 | assert_eq!(fib(7), 5 + 8);
| ^^^ help: a function with a similar name exists: `fibn`
|
::: /tmp/d20211017-167546-qde08m/solution/src/lib.rs:1:1
|
1 | pub fn fibn(n: u32) -> u32 {
| -------------------------- similarly named function `fibn` defined here
error[E0425]: cannot find function `fib` in this scope
--> tests/solution_test.rs:16:16
|
16 | assert_eq!(fib(8), 8 + 13);
| ^^^ help: a function with a similar name exists: `fibn`
|
::: /tmp/d20211017-167546-qde08m/solution/src/lib.rs:1:1
|
1 | pub fn fibn(n: u32) -> u32 {
| -------------------------- similarly named function `fibn` defined here
error[E0425]: cannot find function `fib` in this scope
--> tests/solution_test.rs:17:16
|
17 | assert_eq!(fib(9), 13 + 21);
| ^^^ help: a function with a similar name exists: `fibn`
|
::: /tmp/d20211017-167546-qde08m/solution/src/lib.rs:1:1
|
1 | pub fn fibn(n: u32) -> u32 {
| -------------------------- similarly named function `fibn` defined here
error[E0425]: cannot find function `fib` in this scope
--> tests/solution_test.rs:18:16
|
18 | assert_eq!(fib(10), 21 + 34);
| ^^^ help: a function with a similar name exists: `fibn`
|
::: /tmp/d20211017-167546-qde08m/solution/src/lib.rs:1:1
|
1 | pub fn fibn(n: u32) -> u32 {
| -------------------------- similarly named function `fibn` defined here
error[E0425]: cannot find function `fib` in this scope
--> tests/solution_test.rs:19:16
|
19 | assert_eq!(fib(11), 34 + 55);
| ^^^ help: a function with a similar name exists: `fibn`
|
::: /tmp/d20211017-167546-qde08m/solution/src/lib.rs:1:1
|
1 | pub fn fibn(n: u32) -> u32 {
| -------------------------- similarly named function `fibn` defined here
error[E0425]: cannot find function `fib` in this scope
--> tests/solution_test.rs:20:16
|
20 | assert_eq!(fib(12), 55 + 89);
| ^^^ help: a function with a similar name exists: `fibn`
|
::: /tmp/d20211017-167546-qde08m/solution/src/lib.rs:1:1
|
1 | pub fn fibn(n: u32) -> u32 {
| -------------------------- similarly named function `fibn` defined here
error[E0425]: cannot find function `fib` in this scope
--> tests/solution_test.rs:21:16
|
21 | assert_eq!(fib(13), 89 + 144);
| ^^^ help: a function with a similar name exists: `fibn`
|
::: /tmp/d20211017-167546-qde08m/solution/src/lib.rs:1:1
|
1 | pub fn fibn(n: u32) -> u32 {
| -------------------------- similarly named function `fibn` defined here
warning: unused import: `solution::*`
--> tests/solution_test.rs:4:7
|
4 | use solution::*;
| ^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
For more information about this error, try `rustc --explain E0425`.
warning: `solution` (test "solution_test") generated 1 warning
error: could not compile `solution` due to 14 previous errors; 1 warning emitted
Compiling solution v0.1.0 (/tmp/d20211017-167546-721j47/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.30s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-1a4ytm3/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.26s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-1k2qj19/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.21s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-rcffsb/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.25s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-as9vtl/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.25s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-b4v2ck/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.34s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-177ezs0/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.22s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-3ljubl/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.38s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-ugxbbc/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.29s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-1k8f53v/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.24s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-1t3dip7/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.28s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-47psyj/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.29s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-1bdl7nk/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.27s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-l2djqg/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.26s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-8tkxiy/solution)
warning: value assigned to `temp_num` is never read
--> src/lib.rs:8:13
|
8 | let mut temp_num: u32 = 0;
| ^^^^^^^^
|
= note: `#[warn(unused_assignments)]` on by default
= help: maybe it is overwritten before being read?
warning: unused variable: `num`
--> src/lib.rs:10:9
|
10 | for num in 0..n{
| ^^^ help: if this is intentional, prefix it with an underscore: `_num`
|
= note: `#[warn(unused_variables)]` on by default
warning: `solution` (lib) generated 2 warnings
Finished test [unoptimized + debuginfo] target(s) in 1.28s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... FAILED
failures:
---- solution_test::test_full stdout ----
thread 'main' panicked at 'assertion failed: `(left == right)`
left: `2`,
right: `1`', tests/solution_test.rs:10:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
failures:
solution_test::test_full
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
error: test failed, to rerun pass '--test solution_test'
Compiling solution v0.1.0 (/tmp/d20211017-167546-p7lh61/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.28s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-1ovtshg/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.24s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-kspif9/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.24s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-11a5z2b/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.25s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-a1unb1/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.25s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-wzt11e/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.28s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-134zel2/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.23s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-54w6w1/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.23s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-imyaba/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.27s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-3oax6o/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.23s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-txzp18/solution)
warning: unused variable: `i`
--> src/lib.rs:13:9
|
13 | for i in 1..n {
| ^ help: if this is intentional, prefix it with an underscore: `_i`
|
= note: `#[warn(unused_variables)]` on by default
warning: `solution` (lib) generated 1 warning
Finished test [unoptimized + debuginfo] target(s) in 1.29s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-11xxosy/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.23s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-ii2avm/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.25s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-agui8b/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.27s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-1vhpwll/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.23s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-1tjfqij/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.26s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-geowib/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.29s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-136t11n/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.21s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-12yyyhe/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.34s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-14sscnq/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.23s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-1w4cz0w/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.28s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-fz9r19/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.30s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-ljxxtj/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.22s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-16dnwa2/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.25s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-1mlv4tp/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.22s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... FAILED
failures:
---- solution_test::test_full stdout ----
thread 'main' panicked at 'attempt to subtract with overflow', src/lib.rs:3:16
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
failures:
solution_test::test_full
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
error: test failed, to rerun pass '--test solution_test'
Compiling solution v0.1.0 (/tmp/d20211017-167546-ws9w6f/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.29s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-1kllud8/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.22s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-10y35rz/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.24s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-8i1x3c/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.26s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-gqv7ac/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.32s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-g5mmmk/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.26s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-a8duao/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.23s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-rnyn4x/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.25s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-1hvepa3/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.21s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-aq8llo/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.30s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-pp1bq6/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.25s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-1tbjnlv/solution)
warning: value assigned to `previous_num` is never read
--> src/lib.rs:8:17
|
8 | let mut previous_num = 0 as u32;
| ^^^^^^^^^^^^
|
= note: `#[warn(unused_assignments)]` on by default
= help: maybe it is overwritten before being read?
warning: `solution` (lib) generated 1 warning
Finished test [unoptimized + debuginfo] target(s) in 1.27s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Compiling solution v0.1.0 (/tmp/d20211017-167546-hym8vu/solution)
warning: function is never used: `fib`
--> src/lib.rs:1:4
|
1 | fn fib (n: u32) -> u32 {
| ^^^
|
= note: `#[warn(dead_code)]` on by default
warning: `solution` (lib) generated 1 warning
error[E0425]: cannot find function `fib` in this scope
--> tests/solution_test.rs:8:16
|
8 | assert_eq!(fib(0), 0);
| ^^^ not found in this scope
error[E0425]: cannot find function `fib` in this scope
--> tests/solution_test.rs:9:16
|
9 | assert_eq!(fib(1), 1);
| ^^^ not found in this scope
error[E0425]: cannot find function `fib` in this scope
--> tests/solution_test.rs:10:16
|
10 | assert_eq!(fib(2), 0 + 1);
| ^^^ not found in this scope
error[E0425]: cannot find function `fib` in this scope
--> tests/solution_test.rs:11:16
|
11 | assert_eq!(fib(3), 1 + 1);
| ^^^ not found in this scope
error[E0425]: cannot find function `fib` in this scope
--> tests/solution_test.rs:12:16
|
12 | assert_eq!(fib(4), 1 + 2);
| ^^^ not found in this scope
error[E0425]: cannot find function `fib` in this scope
--> tests/solution_test.rs:13:16
|
13 | assert_eq!(fib(5), 2 + 3);
| ^^^ not found in this scope
error[E0425]: cannot find function `fib` in this scope
--> tests/solution_test.rs:14:16
|
14 | assert_eq!(fib(6), 3 + 5);
| ^^^ not found in this scope
error[E0425]: cannot find function `fib` in this scope
--> tests/solution_test.rs:15:16
|
15 | assert_eq!(fib(7), 5 + 8);
| ^^^ not found in this scope
error[E0425]: cannot find function `fib` in this scope
--> tests/solution_test.rs:16:16
|
16 | assert_eq!(fib(8), 8 + 13);
| ^^^ not found in this scope
error[E0425]: cannot find function `fib` in this scope
--> tests/solution_test.rs:17:16
|
17 | assert_eq!(fib(9), 13 + 21);
| ^^^ not found in this scope
error[E0425]: cannot find function `fib` in this scope
--> tests/solution_test.rs:18:16
|
18 | assert_eq!(fib(10), 21 + 34);
| ^^^ not found in this scope
error[E0425]: cannot find function `fib` in this scope
--> tests/solution_test.rs:19:16
|
19 | assert_eq!(fib(11), 34 + 55);
| ^^^ not found in this scope
error[E0425]: cannot find function `fib` in this scope
--> tests/solution_test.rs:20:16
|
20 | assert_eq!(fib(12), 55 + 89);
| ^^^ not found in this scope
error[E0425]: cannot find function `fib` in this scope
--> tests/solution_test.rs:21:16
|
21 | assert_eq!(fib(13), 89 + 144);
| ^^^ not found in this scope
warning: unused import: `solution::*`
--> tests/solution_test.rs:4:7
|
4 | use solution::*;
| ^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
For more information about this error, try `rustc --explain E0425`.
warning: `solution` (test "solution_test") generated 1 warning
error: could not compile `solution` due to 14 previous errors; 1 warning emitted
Compiling solution v0.1.0 (/tmp/d20211017-167546-dux6sf/solution)
Finished test [unoptimized + debuginfo] target(s) in 1.30s
Running tests/solution_test.rs (target/debug/deps/solution_test-8cd52e62a167f2cd)
running 1 test
test solution_test::test_full ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s