mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
Add test for multi-line attribute handling in doctests
This commit is contained in:
parent
c37cd911a4
commit
732ed2adc8
12
src/test/rustdoc-ui/doc-comment-multi-line-cfg-attr.rs
Normal file
12
src/test/rustdoc-ui/doc-comment-multi-line-cfg-attr.rs
Normal file
@ -0,0 +1,12 @@
|
||||
// compile-flags:--test
|
||||
// normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR"
|
||||
// normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
// check-pass
|
||||
|
||||
/// ```
|
||||
/// # #![cfg_attr(not(dox), deny(missing_abi,
|
||||
/// # non_ascii_idents))]
|
||||
///
|
||||
/// pub struct Bar;
|
||||
/// ```
|
||||
pub struct Bar;
|
@ -0,0 +1,6 @@
|
||||
|
||||
running 1 test
|
||||
test $DIR/doc-comment-multi-line-cfg-attr.rs - Bar (line 6) ... ok
|
||||
|
||||
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME
|
||||
|
Loading…
Reference in New Issue
Block a user