mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
12 lines
283 B
Rust
12 lines
283 B
Rust
// check-pass
|
|
// compile-flags:--test
|
|
// normalize-stdout-test: "tests/rustdoc-ui" -> "$$DIR"
|
|
// normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
|
|
|
|
pub fn test() -> Result<(), ()> {
|
|
//! ```compile_fail
|
|
//! fn test() -> Result< {}
|
|
//! ```
|
|
Ok(())
|
|
}
|