]> git.lizzy.rs Git - rust.git/blob - src/test/ui/reachable/expr_unary.stderr
Merge commit '8da837185714cefbb261e93e9846afb11c1dc60e' into sync-rustfmt-subtree
[rust.git] / src / test / ui / reachable / expr_unary.stderr
1 error[E0600]: cannot apply unary operator `!` to type `!`
2   --> $DIR/expr_unary.rs:8:16
3    |
4 LL |     let x: ! = ! { return; };
5    |                ^^^^^^^^^^^^^ cannot apply unary operator `!`
6
7 error: unreachable expression
8   --> $DIR/expr_unary.rs:8:16
9    |
10 LL |     let x: ! = ! { return; };
11    |                ^^^^------^^^
12    |                |   |
13    |                |   any code following this expression is unreachable
14    |                unreachable expression
15    |
16 note: the lint level is defined here
17   --> $DIR/expr_unary.rs:5:9
18    |
19 LL | #![deny(unreachable_code)]
20    |         ^^^^^^^^^^^^^^^^
21
22 error: aborting due to 2 previous errors
23
24 For more information about this error, try `rustc --explain E0600`.