summaryrefslogtreecommitdiffstats
path: root/src/test/ui/macros/cfg.rs
blob: 2aac50a9d011afb85bbfb5d0c7616664981b3d18 (plain)
1
2
3
4
5
6
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
    cfg!(foo, bar); //~ ERROR expected 1 cfg-pattern
}