2021-02-04 11:59:42 -06:00
|
|
|
// compile-flags:--test --error-format=short
|
2023-01-05 02:45:44 -06:00
|
|
|
// normalize-stdout-test: "tests/rustdoc-ui" -> "$$DIR"
|
2021-02-04 11:59:42 -06:00
|
|
|
// normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
|
|
|
|
// failure-status: 101
|
|
|
|
|
|
|
|
/// ```rust
|
|
|
|
/// foo();
|
|
|
|
/// ```
|
|
|
|
//~^^ ERROR cannot find function `foo` in this scope
|
|
|
|
fn foo() {
|
|
|
|
println!("Hello, world!");
|
|
|
|
}
|