2021-02-04 11:59:42 -06:00
|
|
|
//@ compile-flags:--test --error-format=short
|
2023-12-21 03:44:43 -06:00
|
|
|
//@ check-stdout
|
2024-06-21 14:22:59 -05:00
|
|
|
//@ error-pattern:cannot find function `foo`
|
2023-04-29 04:08:33 -05:00
|
|
|
//@ normalize-stdout-test: "tests/rustdoc-ui/issues" -> "$$DIR"
|
2024-06-21 00:15:36 -05:00
|
|
|
//@ normalize-stdout-test: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
2021-02-04 11:59:42 -06:00
|
|
|
//@ failure-status: 101
|
|
|
|
|
|
|
|
/// ```rust
|
|
|
|
/// foo();
|
|
|
|
/// ```
|
|
|
|
fn foo() {
|
|
|
|
println!("Hello, world!");
|
|
|
|
}
|