]> git.lizzy.rs Git - rust.git/blob - src/test/ui/cfg-non-opt-expr.stderr
Auto merge of #53190 - sekineh:thumb-cortex-m, r=jamesmunns
[rust.git] / src / test / ui / cfg-non-opt-expr.stderr
1 error: removing an expression is not supported in this position
2   --> $DIR/cfg-non-opt-expr.rs:14:13
3    |
4 LL |     let _ = #[cfg(unset)] ();
5    |             ^^^^^^^^^^^^^
6
7 error: removing an expression is not supported in this position
8   --> $DIR/cfg-non-opt-expr.rs:16:21
9    |
10 LL |     let _ = 1 + 2 + #[cfg(unset)] 3;
11    |                     ^^^^^^^^^^^^^
12
13 error: removing an expression is not supported in this position
14   --> $DIR/cfg-non-opt-expr.rs:18:23
15    |
16 LL |     let _ = [1, 2, 3][#[cfg(unset)] 1];
17    |                       ^^^^^^^^^^^^^
18
19 error: removing an expression is not supported in this position
20   --> $DIR/cfg-non-opt-expr.rs:20:13
21    |
22 LL |     let _ = #[test] ();
23    |             ^^^^^^^
24
25 error: aborting due to 4 previous errors
26