File tree Expand file tree Collapse file tree 3 files changed +32
-1
lines changed Expand file tree Collapse file tree 3 files changed +32
-1
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ mod __doctest_mod {{
131131 .output()
132132 .expect(\" failed to run command\" );
133133 if !out.status.success() {{
134- eprintln !(\" {{}}\" , String::from_utf8_lossy(&out.stderr));
134+ eprint !(\" {{}}\" , String::from_utf8_lossy(&out.stderr));
135135 ExitCode::FAILURE
136136 }} else {{
137137 ExitCode::SUCCESS
File renamed without changes.
Original file line number Diff line number Diff line change 1+
2+ running 1 test
3+ test $DIR/edition-2024-error-output.rs - (line 10) ... FAILED
4+
5+ failures:
6+
7+ ---- $DIR/edition-2024-error-output.rs - (line 10) stdout ----
8+
9+ thread 'main' panicked at /tmp/rustdoctestbhbYqX/doctest_bundle_2024.rs:6:1:
10+ assertion `left == right` failed
11+ left: 4
12+ right: 5
13+ stack backtrace:
14+ 0: __rustc::rust_begin_unwind
15+ 1: core::panicking::panic_fmt
16+ 2: core::panicking::assert_failed_inner
17+ 3: core::panicking::assert_failed
18+ 4: doctest_bundle_2024::__doctest_0::main
19+ 5: doctest_bundle_2024::__doctest_0::__main_fn
20+ 6: doctest_runner_2024::__doctest_0::TEST::{{closure}}
21+ 7: core::ops::function::FnOnce::call_once
22+ 8: doctest_runner_2024::main
23+ 9: core::ops::function::FnOnce::call_once
24+ note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
25+
26+
27+ failures:
28+ $DIR/edition-2024-error-output.rs - (line 10)
29+
30+ test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME
31+
You can’t perform that action at this time.
0 commit comments