2021-02-04 11:59:42 -06:00
|
|
|
// compile-flags:--test --error-format=short
|
2023-04-29 04:08:33 -05:00
|
|
|
// normalize-stdout-test: "tests/rustdoc-ui/issues" -> "$$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!");
|
|
|
|
}
|