Add a test
This commit is contained in:
parent
eef383fa00
commit
0ef55570fb
11
src/test/rustdoc-ui/issue-80992.rs
Normal file
11
src/test/rustdoc-ui/issue-80992.rs
Normal 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(())
|
||||
}
|
6
src/test/rustdoc-ui/issue-80992.stdout
Normal file
6
src/test/rustdoc-ui/issue-80992.stdout
Normal 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user