Skip to content

Commit 732ed2a

Browse files
Add test for multi-line attribute handling in doctests
1 parent c37cd91 commit 732ed2a

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// compile-flags:--test
2+
// normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR"
3+
// normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
4+
// check-pass
5+
6+
/// ```
7+
/// # #![cfg_attr(not(dox), deny(missing_abi,
8+
/// # non_ascii_idents))]
9+
///
10+
/// pub struct Bar;
11+
/// ```
12+
pub struct Bar;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
running 1 test
3+
test $DIR/doc-comment-multi-line-cfg-attr.rs - Bar (line 6) ... 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)