]> git.proxmox.com Git - rustc.git/blob - src/test/ui/reachable/expr_unary.stderr
New upstream version 1.60.0+dfsg1
[rustc.git] / src / test / ui / reachable / expr_unary.stderr
1 error[E0614]: type `!` cannot be dereferenced
2 --> $DIR/expr_unary.rs:8:16
3 |
4 LL | let x: ! = * { return; };
5 | ^^^^^^^^^^^^^
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 E0614`.