blob: 0ddbd8a156dc95e8b855db9c95414f1226c947ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#![feature(stmt_expr_attributes)]
#![feature(custom_test_frameworks)]
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
}
|