1error: removing an expression is not supported in this position
2  --> $DIR/cfg-non-opt-expr.rs:5:13
3   |
4LL |     let _ = #[cfg(unset)] ();
5   |             ^^^^^^^^^^^^^
6
7error: removing an expression is not supported in this position
8  --> $DIR/cfg-non-opt-expr.rs:7:21
9   |
10LL |     let _ = 1 + 2 + #[cfg(unset)] 3;
11   |                     ^^^^^^^^^^^^^
12
13error: removing an expression is not supported in this position
14  --> $DIR/cfg-non-opt-expr.rs:9:23
15   |
16LL |     let _ = [1, 2, 3][#[cfg(unset)] 1];
17   |                       ^^^^^^^^^^^^^
18
19error: aborting due to 3 previous errors
20
21