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