mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 12:36:35 +03:00
56d6b4e427
and migrate most of remaining `error-pattern`s to it.
15 lines
329 B
Rust
15 lines
329 B
Rust
//@ compile-flags:--test --error-format=short
|
|
//@ check-stdout
|
|
//@ normalize-stdout: "tests/rustdoc-ui/issues" -> "$$DIR"
|
|
//@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
|
//@ failure-status: 101
|
|
|
|
/// ```rust
|
|
/// foo();
|
|
/// ```
|
|
fn foo() {
|
|
println!("Hello, world!");
|
|
}
|
|
|
|
//~? RAW cannot find function `foo`
|