]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/cfg.rs
Move /src/test to /tests
[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 }