2016-01-20 23:16:59 +00:00
|
|
|
#![feature(stmt_expr_attributes)]
|
2018-07-21 01:04:02 +00:00
|
|
|
#![feature(custom_test_frameworks)]
|
2016-01-20 23:16:59 +00:00
|
|
|
|
2015-11-30 17:16:27 +00:00
|
|
|
fn main() {
|
2024-04-06 22:43:00 +00:00
|
|
|
let _ = #[cfg(FALSE)] ();
|
2015-11-30 17:16:27 +00:00
|
|
|
//~^ ERROR removing an expression is not supported in this position
|
2024-04-06 22:43:00 +00:00
|
|
|
let _ = 1 + 2 + #[cfg(FALSE)] 3;
|
2015-11-30 17:16:27 +00:00
|
|
|
//~^ ERROR removing an expression is not supported in this position
|
2024-04-06 22:43:00 +00:00
|
|
|
let _ = [1, 2, 3][#[cfg(FALSE)] 1];
|
2015-11-30 17:16:27 +00:00
|
|
|
//~^ ERROR removing an expression is not supported in this position
|
|
|
|
}
|