summaryrefslogtreecommitdiffstats
path: root/tests/ui/reachable/expr_assign.stderr
blob: c51156b3f40cfcc79640b85ecf64c83df06432c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
error: unreachable expression
  --> $DIR/expr_assign.rs:10:5
   |
LL |     x = return;
   |     ^^^^------
   |     |   |
   |     |   any code following this expression is unreachable
   |     unreachable expression
   |
note: the lint level is defined here
  --> $DIR/expr_assign.rs:5:9
   |
LL | #![deny(unreachable_code)]
   |         ^^^^^^^^^^^^^^^^

error: unreachable expression
  --> $DIR/expr_assign.rs:20:14
   |
LL |         *p = return;
   |         --   ^^^^^^ unreachable expression
   |         |
   |         any code following this expression is unreachable

error: unreachable expression
  --> $DIR/expr_assign.rs:26:15
   |
LL |     *{return; &mut i} = 22;
   |       ------  ^^^^^^ unreachable expression
   |       |
   |       any code following this expression is unreachable

error: aborting due to 3 previous errors