mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
14 lines
360 B
Rust
14 lines
360 B
Rust
//@ compile-flags:--test --error-format=short
|
|
//@ check-stdout
|
|
//@ error-pattern:cannot find function `foo` in this scope
|
|
//@ normalize-stdout-test: "tests/rustdoc-ui/issues" -> "$$DIR"
|
|
//@ normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
|
|
//@ failure-status: 101
|
|
|
|
/// ```rust
|
|
/// foo();
|
|
/// ```
|
|
fn foo() {
|
|
println!("Hello, world!");
|
|
}
|