summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-ui/check-cfg.rs
blob: fa8789ad3ede4c9a72a2f73fe140a6a2a37e249d (plain)
1
2
3
4
5
6
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;