summaryrefslogtreecommitdiffstats
path: root/tests/ui/pattern/never_patterns.stderr
blob: 11e50debfd39a6d99c0910192217676e0af62d0c (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
error[E0408]: variable `_x` is not bound in all patterns
  --> $DIR/never_patterns.rs:12:19
   |
LL |     let (Ok(_x) | Err(!)) = &res;
   |             --    ^^^^^^ pattern doesn't bind `_x`
   |             |
   |             variable not in all patterns

error[E0408]: variable `_x` is not bound in all patterns
  --> $DIR/never_patterns.rs:14:19
   |
LL |     let (Ok(_x) | Err(&!)) = res.as_ref();
   |             --    ^^^^^^^ pattern doesn't bind `_x`
   |             |
   |             variable not in all patterns

error[E0408]: variable `_x` is not bound in all patterns
  --> $DIR/never_patterns.rs:83:18
   |
LL |         Ok(_x) | Err(&!) => {}
   |            --    ^^^^^^^ pattern doesn't bind `_x`
   |            |
   |            variable not in all patterns

error[E0408]: variable `_x` is not bound in all patterns
  --> $DIR/never_patterns.rs:86:19
   |
LL |     let (Ok(_x) | Err(&!)) = x;
   |             --    ^^^^^^^ pattern doesn't bind `_x`
   |             |
   |             variable not in all patterns

error[E0408]: variable `_b` is not bound in all patterns
  --> $DIR/never_patterns.rs:95:9
   |
LL |         Ok(_a) | Err(&(_b, !)) => {}
   |         ^^^^^^         -- variable not in all patterns
   |         |
   |         pattern doesn't bind `_b`

error[E0408]: variable `_a` is not bound in all patterns
  --> $DIR/never_patterns.rs:95:18
   |
LL |         Ok(_a) | Err(&(_b, !)) => {}
   |            --    ^^^^^^^^^^^^^ pattern doesn't bind `_a`
   |            |
   |            variable not in all patterns

error: aborting due to 6 previous errors

For more information about this error, try `rustc --explain E0408`.