summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfcs/rfc-0000-never_patterns/check.stderr
blob: bfbc7a1b5340c57f0b85652e26f3b0945d4a73e5 (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
34
35
error: a never pattern is always unreachable
  --> $DIR/check.rs:14:20
   |
LL |         Some(!) => {}
   |                    ^^
   |                    |
   |                    this will never be executed
   |                    help: remove this expression

error: a guard on a never pattern will never be run
  --> $DIR/check.rs:19:20
   |
LL |         Some(!) if true,
   |                    ^^^^ help: remove this guard

error: a never pattern is always unreachable
  --> $DIR/check.rs:24:28
   |
LL |         Some(!) if true => {}
   |                            ^^
   |                            |
   |                            this will never be executed
   |                            help: remove this expression

error: a never pattern is always unreachable
  --> $DIR/check.rs:29:27
   |
LL |         Some(never!()) => {},
   |                           ^^
   |                           |
   |                           this will never be executed
   |                           help: remove this expression

error: aborting due to 4 previous errors