]> git.proxmox.com Git - rustc.git/blame - src/doc/book/listings/ch11-writing-automated-tests/no-listing-03-introducing-a-bug/output.txt
New upstream version 1.54.0+dfsg1
[rustc.git] / src / doc / book / listings / ch11-writing-automated-tests / no-listing-03-introducing-a-bug / output.txt
CommitLineData
74b04a01
XL
1$ cargo test
2 Compiling rectangle v0.1.0 (file:///projects/rectangle)
3 Finished test [unoptimized + debuginfo] target(s) in 0.66s
17df50a5 4 Running unittests (target/debug/deps/rectangle-6584c4561e48942e)
74b04a01
XL
5
6running 2 tests
7test tests::larger_can_hold_smaller ... FAILED
8test tests::smaller_cannot_hold_larger ... ok
9
10failures:
11
12---- tests::larger_can_hold_smaller stdout ----
13thread 'main' panicked at 'assertion failed: larger.can_hold(&smaller)', src/lib.rs:28:9
fc512014 14note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
74b04a01
XL
15
16
17failures:
18 tests::larger_can_hold_smaller
19
6a06907d 20test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
74b04a01
XL
21
22error: test failed, to rerun pass '--lib'