diff options
Diffstat (limited to 'tests/rustdoc-ui/invalid-cfg.rs')
-rw-r--r-- | tests/rustdoc-ui/invalid-cfg.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/rustdoc-ui/invalid-cfg.rs b/tests/rustdoc-ui/invalid-cfg.rs new file mode 100644 index 000000000..d237b8605 --- /dev/null +++ b/tests/rustdoc-ui/invalid-cfg.rs @@ -0,0 +1,4 @@ +#![feature(doc_cfg)] +#[doc(cfg = "x")] //~ ERROR not followed by parentheses +#[doc(cfg(x, y))] //~ ERROR multiple `cfg` predicates +struct S {} |