Use eprint!
instead of eprintln!
This commit is contained in:
parent
fff2484700
commit
f9927ee042
4 changed files with 23 additions and 33 deletions
14
tests/rustdoc-ui/doctest/edition-2024-error-output.rs
Normal file
14
tests/rustdoc-ui/doctest/edition-2024-error-output.rs
Normal file
|
@ -0,0 +1,14 @@
|
|||
// This is a regression test for <https://github.com/rust-lang/rust/issues/137970>.
|
||||
// The output must look nice and not like a `Debug` display of a `String`.
|
||||
|
||||
//@ edition: 2024
|
||||
//@ compile-flags: --test
|
||||
//@ normalize-stdout: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
||||
//@ normalize-stdout: "panicked at .+rs:" -> "panicked at $$TMP:"
|
||||
//@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ rustc-env:RUST_BACKTRACE=0
|
||||
//@ failure-status: 101
|
||||
|
||||
//! ```rust
|
||||
//! assert_eq!(2 + 2, 5);
|
||||
//! ```
|
Loading…
Add table
Add a link
Reference in a new issue