mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00

This prevents the included test case from getting at nightly-only features when run on stable. The harness builds with RUSTC_BOOTSTRAP, but the bundle doesn't.
18 lines
562 B
Rust
18 lines
562 B
Rust
// FIXME: if/when the output of the test harness can be tested on its own, this test should be
|
|
// adapted to use that, and that normalize line can go away
|
|
|
|
//@ revisions: edition2015 edition2024
|
|
//@[edition2015]edition:2015
|
|
//@[edition2024]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
|
|
|
|
/// <https://github.com/rust-lang/rust/pull/137899#discussion_r1976743383>
|
|
///
|
|
/// ```rust
|
|
/// use test::*;
|
|
/// ```
|
|
pub mod m {}
|