mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
13 lines
361 B
Rust
13 lines
361 B
Rust
//@ check-pass
|
|
//@ compile-flags:--test -Zunstable-options --nocapture
|
|
//@ normalize-stderr-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
|
//@ normalize-stdout-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
|
//@ normalize-stdout-test: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
|
|
|
/// ```compile_fail
|
|
/// fn foo() {
|
|
/// Input: 123
|
|
/// }
|
|
/// ```
|
|
pub struct Foo;
|