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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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