diff options
Diffstat (limited to 'tests/ui/proc-macro/cfg-eval-fail.rs')
-rw-r--r-- | tests/ui/proc-macro/cfg-eval-fail.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/proc-macro/cfg-eval-fail.rs b/tests/ui/proc-macro/cfg-eval-fail.rs new file mode 100644 index 000000000..a259aa2e6 --- /dev/null +++ b/tests/ui/proc-macro/cfg-eval-fail.rs @@ -0,0 +1,7 @@ +#![feature(cfg_eval)] +#![feature(stmt_expr_attributes)] + +fn main() { + let _ = #[cfg_eval] #[cfg(FALSE)] 0; + //~^ ERROR removing an expression is not supported in this position +} |