2021-02-04 18:59:42 +01:00
|
|
|
//@ compile-flags:--test --error-format=short
|
2023-12-21 15:14:43 +05:30
|
|
|
//@ check-stdout
|
2024-12-25 22:12:17 +11:00
|
|
|
//@ normalize-stdout: "tests/rustdoc-ui/issues" -> "$$DIR"
|
|
|
|
|
//@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
2021-02-04 18:59:42 +01:00
|
|
|
//@ failure-status: 101
|
|
|
|
|
|
|
|
|
|
/// ```rust
|
|
|
|
|
/// foo();
|
|
|
|
|
/// ```
|
|
|
|
|
fn foo() {
|
|
|
|
|
println!("Hello, world!");
|
|
|
|
|
}
|
2025-05-02 17:56:07 +03:00
|
|
|
|
|
|
|
|
//~? RAW cannot find function `foo`
|