|
1 | | -error[E0004]: non-exhaustive patterns: type `impl Copy` is non-empty |
2 | | - --> $DIR/impl-trait.rs:16:15 |
3 | | - | |
4 | | -LL | match return_never_rpit(x) {} |
5 | | - | ^^^^^^^^^^^^^^^^^^^^ |
6 | | - | |
7 | | - = note: the matched value is of type `impl Copy` |
8 | | -help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern as shown |
9 | | - | |
10 | | -LL ~ match return_never_rpit(x) { |
11 | | -LL + _ => todo!(), |
12 | | -LL + } |
13 | | - | |
14 | | - |
15 | | -error[E0004]: non-exhaustive patterns: type `T` is non-empty |
16 | | - --> $DIR/impl-trait.rs:29:15 |
17 | | - | |
18 | | -LL | match return_never_tait(x) {} |
19 | | - | ^^^^^^^^^^^^^^^^^^^^ |
20 | | - | |
21 | | - = note: the matched value is of type `T` |
22 | | -help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern as shown |
23 | | - | |
24 | | -LL ~ match return_never_tait(x) { |
25 | | -LL + _ => todo!(), |
26 | | -LL + } |
27 | | - | |
28 | | - |
29 | | -error: unconstrained opaque type |
30 | | - --> $DIR/impl-trait.rs:25:10 |
31 | | - | |
32 | | -LL | type T = impl Copy; |
33 | | - | ^^^^^^^^^ |
34 | | - | |
35 | | - = note: `T` must be used in combination with a concrete type within the same module |
36 | | - |
37 | | -error[E0004]: non-exhaustive patterns: type `inner_never::T` is non-empty |
38 | | - --> $DIR/impl-trait.rs:56:11 |
39 | | - | |
40 | | -LL | match y {} |
41 | | - | ^ |
42 | | - | |
43 | | - = note: the matched value is of type `inner_never::T` |
44 | | -help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern as shown |
| 1 | +error: unreachable pattern |
| 2 | + --> $DIR/impl-trait.rs:41:13 |
45 | 3 | | |
46 | | -LL ~ match y { |
47 | | -LL + _ => todo!(), |
48 | | -LL + } |
| 4 | +LL | Some(_) => {} |
| 5 | + | ^^^^^^^ |
49 | 6 | | |
50 | | - |
51 | | -error: unconstrained opaque type |
52 | | - --> $DIR/impl-trait.rs:53:14 |
53 | | - | |
54 | | -LL | type T = impl Copy; |
55 | | - | ^^^^^^^^^ |
| 7 | +note: the lint level is defined here |
| 8 | + --> $DIR/impl-trait.rs:5:9 |
56 | 9 | | |
57 | | - = note: `T` must be used in combination with a concrete type within the same item |
| 10 | +LL | #![deny(unreachable_patterns)] |
| 11 | + | ^^^^^^^^^^^^^^^^^^^^ |
58 | 12 |
|
59 | 13 | error: unreachable pattern |
60 | | - --> $DIR/impl-trait.rs:66:9 |
| 14 | + --> $DIR/impl-trait.rs:65:9 |
61 | 15 | | |
62 | 16 | LL | _ => {} |
63 | 17 | | - matches any value |
64 | 18 | LL | Some((a, b)) => {} |
65 | 19 | | ^^^^^^^^^^^^ unreachable pattern |
| 20 | + |
| 21 | +error: unreachable pattern |
| 22 | + --> $DIR/impl-trait.rs:79:9 |
66 | 23 | | |
67 | | -note: the lint level is defined here |
68 | | - --> $DIR/impl-trait.rs:5:9 |
69 | | - | |
70 | | -LL | #![deny(unreachable_patterns)] |
| 24 | +LL | Some((mut x, mut y)) => { |
71 | 25 | | ^^^^^^^^^^^^^^^^^^^^ |
72 | 26 |
|
73 | | -error[E0004]: non-exhaustive patterns: type `U` is non-empty |
74 | | - --> $DIR/impl-trait.rs:73:21 |
| 27 | +error[E0004]: non-exhaustive patterns: type `impl Copy` is non-empty |
| 28 | + --> $DIR/impl-trait.rs:21:11 |
75 | 29 | | |
76 | | -LL | if true { match u {} } else { x } |
77 | | - | ^ |
| 30 | +LL | match return_never_rpit(x) {} |
| 31 | + | ^^^^^^^^^^^^^^^^^^^^ |
78 | 32 | | |
79 | | - = note: the matched value is of type `U` |
| 33 | + = note: the matched value is of type `impl Copy` |
80 | 34 | help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern as shown |
81 | 35 | | |
82 | | -LL ~ if true { match u { |
| 36 | +LL ~ match return_never_rpit(x) { |
83 | 37 | LL + _ => todo!(), |
84 | | -LL ~ } } else { x } |
| 38 | +LL + } |
85 | 39 | | |
86 | 40 |
|
87 | | -error: unconstrained opaque type |
88 | | - --> $DIR/impl-trait.rs:70:10 |
| 41 | +error[E0004]: non-exhaustive patterns: type `T` is non-empty |
| 42 | + --> $DIR/impl-trait.rs:33:11 |
89 | 43 | | |
90 | | -LL | type U = impl Copy; |
91 | | - | ^^^^^^^^^ |
| 44 | +LL | match return_never_tait(x) {} |
| 45 | + | ^^^^^^^^^^^^^^^^^^^^ |
92 | 46 | | |
93 | | - = note: `U` must be used in combination with a concrete type within the same module |
94 | | - |
95 | | -error: unreachable pattern |
96 | | - --> $DIR/impl-trait.rs:82:9 |
| 47 | + = note: the matched value is of type `T` |
| 48 | +help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern as shown |
| 49 | + | |
| 50 | +LL ~ match return_never_tait(x) { |
| 51 | +LL + _ => todo!(), |
| 52 | +LL + } |
97 | 53 | | |
98 | | -LL | Some((mut x, mut y)) => { |
99 | | - | ^^^^^^^^^^^^^^^^^^^^ |
100 | 54 |
|
101 | | -error: aborting due to 9 previous errors |
| 55 | +error: aborting due to 5 previous errors |
102 | 56 |
|
103 | 57 | For more information about this error, try `rustc --explain E0004`. |
0 commit comments