]> git.lizzy.rs Git - rust.git/blob - src/test/ui/conditional-compilation/cfg-non-opt-expr.stderr
Merge commit '533f0fc81ab9ba097779fcd27c8f9ea12261fef5' into psimd
[rust.git] / src / test / ui / conditional-compilation / cfg-non-opt-expr.stderr
1 error: removing an expression is not supported in this position
2   --> $DIR/cfg-non-opt-expr.rs:5: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:7: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:9:23
15    |
16 LL |     let _ = [1, 2, 3][#[cfg(unset)] 1];
17    |                       ^^^^^^^^^^^^^
18
19 error: aborting due to 3 previous errors
20