summary refs log tree commit diff
path: root/src/test/ui/macros/cfg.rs
blob: 222161a8183a28043d27491816000f1b88f17499 (plain)
1
2
3
4
5
fn main() {
    cfg!(); //~ ERROR macro requires a cfg-pattern
    cfg!(123); //~ ERROR expected identifier
    cfg!(foo = 123); //~ ERROR literal in `cfg` predicate value must be a string
}