rust/src/test/ui/conditional-compilation/cfg-non-opt-expr.stderr

21 lines
596 B
Plaintext
Raw Normal View History

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];
| ^^^^^^^^^^^^^
error: aborting due to 3 previous errors
2018-08-08 07:28:26 -05:00