2018-08-08 07:28:26 -05:00
|
|
|
error: removing an expression is not supported in this position
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/cfg-non-opt-expr.rs:5:13
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | let _ = #[cfg(unset)] ();
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: removing an expression is not supported in this position
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/cfg-non-opt-expr.rs:7: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-12-25 09:56:47 -06:00
|
|
|
--> $DIR/cfg-non-opt-expr.rs:9: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
|
|
|
|