rust/tests/rustdoc-ui/doctest/per-target-ignores.rs
Takayuki Maeda 90c541d637 ignore doctests only in specified targets
add necessary lines

fix ui test error
2025-03-25 15:39:41 +09:00

15 lines
306 B
Rust

//@ only-aarch64
//@ compile-flags:--test
//@ normalize-stdout: "tests/rustdoc-ui/doctest" -> "$$DIR"
//@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
//@ check-pass
///```ignore-x86_64
/// assert!(cfg!(not(target_arch = "x86_64")));
///```
pub fn foo() -> u8 {
4
}
fn main() {}