]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/cfg.rs
Auto merge of #106976 - tmiasko:borrowck-lazy-dominators, r=cjgillot
[rust.git] / tests / ui / macros / cfg.rs
1 fn main() {
2     cfg!(); //~ ERROR macro requires a cfg-pattern
3     cfg!(123); //~ ERROR expected identifier
4     cfg!(foo = 123); //~ ERROR literal in `cfg` predicate value must be a string
5     cfg!(foo, bar); //~ ERROR expected 1 cfg-pattern
6 }