Add a test

This commit is contained in:
Ömer Sinan Ağacan 2021-01-16 06:55:16 +03:00
parent eef383fa00
commit 0ef55570fb
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,11 @@
// check-pass
// compile-flags:--test
// normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR"
// normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
pub fn test() -> Result<(), ()> {
//! ```compile_fail
//! fn test() -> Result< {}
//! ```
Ok(())
}

View File

@ -0,0 +1,6 @@
running 1 test
test $DIR/issue-80992.rs - test (line 7) ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME