]> git.lizzy.rs Git - rust.git/blob - tests/ui/reachable/expr_block.stderr
Fix #106496, suggest remove deref for type mismatch
[rust.git] / tests / ui / reachable / expr_block.stderr
1 error: unreachable expression
2   --> $DIR/expr_block.rs:10:9
3    |
4 LL |         return;
5    |         ------ any code following this expression is unreachable
6 LL |         22
7    |         ^^ unreachable expression
8    |
9 note: the lint level is defined here
10   --> $DIR/expr_block.rs:4:9
11    |
12 LL | #![deny(unreachable_code)]
13    |         ^^^^^^^^^^^^^^^^
14
15 error: unreachable statement
16   --> $DIR/expr_block.rs:25:9
17    |
18 LL |         return;
19    |         ------ any code following this expression is unreachable
20 LL |         println!("foo");
21    |         ^^^^^^^^^^^^^^^ unreachable statement
22    |
23    = note: this error originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
24
25 error: aborting due to 2 previous errors
26