January 2018
Beginner to intermediate
454 pages
10h 8m
English
As mentioned in the output, we can set the environment variable RUST_BACKTRACE to 1 in order to get more information about where the test failed. Let's do so:
export RUST_BACKTRACE=1
Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs Running target/debug/deps/ftp_server-452667ddc2d724e8 running 2 tests test codec::tests::test_encoder ... ok test codec::tests::test_dummy ... FAILED failures: ---- codec::tests::test_dummy stdout ---- thread 'codec::tests::test_dummy' panicked at 'Always fail', src/codec.rs:102:8 note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. stack backtrace: 0: std::sys::imp::backtrace::tracing::imp::unwind_backtrace at /checkout/src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:49 ...
Read now
Unlock full access