]> git.proxmox.com Git - rustc.git/blob - src/test/ui/reachable/expr_unary.stderr
New upstream version 1.28.0~beta.14+dfsg1
[rustc.git] / src / test / ui / reachable / expr_unary.stderr
1 error[E0600]: cannot apply unary operator `!` to type `!`
2 --> $DIR/expr_unary.rs:17:16
3 |
4 LL | let x: ! = ! { return; }; //~ ERROR unreachable
5 | ^^^^^^^^^^^^^ cannot apply unary operator `!`
6
7 error: unreachable expression
8 --> $DIR/expr_unary.rs:17:16
9 |
10 LL | let x: ! = ! { return; }; //~ ERROR unreachable
11 | ^^^^^^^^^^^^^
12 |
13 note: lint level defined here
14 --> $DIR/expr_unary.rs:14:9
15 |
16 LL | #![deny(unreachable_code)]
17 | ^^^^^^^^^^^^^^^^
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0600`.