2018-08-08 07:28:26 -05:00
|
|
|
error: removing an expression is not supported in this position
|
2018-07-20 20:04:02 -05:00
|
|
|
--> $DIR/cfg-non-opt-expr.rs:15:13
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | let _ = #[cfg(unset)] ();
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: removing an expression is not supported in this position
|
2018-07-20 20:04:02 -05:00
|
|
|
--> $DIR/cfg-non-opt-expr.rs:17:21
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | let _ = 1 + 2 + #[cfg(unset)] 3;
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: removing an expression is not supported in this position
|
2018-07-20 20:04:02 -05:00
|
|
|
--> $DIR/cfg-non-opt-expr.rs:19:23
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | let _ = [1, 2, 3][#[cfg(unset)] 1];
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
2018-09-02 11:03:24 -05:00
|
|
|
error: aborting due to 3 previous errors
|
2018-08-08 07:28:26 -05:00
|
|
|
|