Skip to content

Commit 0ef5557

Browse files
committed
Add a test
1 parent eef383f commit 0ef5557

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

src/test/rustdoc-ui/issue-80992.rs

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// check-pass
2+
// compile-flags:--test
3+
// normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR"
4+
// normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
5+
6+
pub fn test() -> Result<(), ()> {
7+
//! ```compile_fail
8+
//! fn test() -> Result< {}
9+
//! ```
10+
Ok(())
11+
}
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
running 1 test
3+
test $DIR/issue-80992.rs - test (line 7) ... ok
4+
5+
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME
6+

0 commit comments

Comments
 (0)