diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/macros/cfg.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/macros/cfg.rs b/src/test/ui/macros/cfg.rs new file mode 100644 index 000000000..2aac50a9d --- /dev/null +++ b/src/test/ui/macros/cfg.rs @@ -0,0 +1,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 +} |