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

27 lines
767 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: removing an expression is not supported in this position
2018-07-20 20:04:02 -05:00
--> $DIR/cfg-non-opt-expr.rs:21:13
2018-08-08 07:28:26 -05:00
|
2018-07-20 20:04:02 -05:00
LL | let _ = #[test_case] ();
| ^^^^^^^^^^^^
2018-08-08 07:28:26 -05:00
error: aborting due to 4 previous errors