diff options
Diffstat (limited to 'src/test/rustdoc-ui/check-cfg.rs')
-rw-r--r-- | src/test/rustdoc-ui/check-cfg.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/rustdoc-ui/check-cfg.rs b/src/test/rustdoc-ui/check-cfg.rs new file mode 100644 index 000000000..fa8789ad3 --- /dev/null +++ b/src/test/rustdoc-ui/check-cfg.rs @@ -0,0 +1,7 @@ +// check-pass +// compile-flags: --check-cfg=names() -Z unstable-options + +/// uniz is nor a builtin nor pass as arguments so is unexpected +#[cfg(uniz)] +//~^ WARNING unexpected `cfg` condition name +pub struct Bar; |