rust/tests/rustdoc-ui/edition-2024-doctest-error-output.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
405 B
Rust
Raw Normal View History

2025-04-03 15:21:03 +00:00
// 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: "finished in \d+\.\d+s" -> "finished in $$TIME"
//@ failure-status: 101
//! ```rust
//! assert_eq!(2 + 2, 5);
//! ```