|
| 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: unreachable pattern |
| 38 | + --> $DIR/impl-trait.rs:56:13 |
| 39 | + | |
| 40 | +LL | Some(_) => {} |
| 41 | + | ^^^^^^^ |
| 42 | + | |
| 43 | +note: the lint level is defined here |
| 44 | + --> $DIR/impl-trait.rs:5:9 |
| 45 | + | |
| 46 | +LL | #![deny(unreachable_patterns)] |
| 47 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 48 | + |
| 49 | +error: unreachable pattern |
| 50 | + --> $DIR/impl-trait.rs:60:13 |
| 51 | + | |
| 52 | +LL | _ => {} |
| 53 | + | ^ |
| 54 | + |
| 55 | +error[E0004]: non-exhaustive patterns: type `inner_never::T` is non-empty |
| 56 | + --> $DIR/impl-trait.rs:73:11 |
| 57 | + | |
| 58 | +LL | match y {} |
| 59 | + | ^ |
| 60 | + | |
| 61 | + = note: the matched value is of type `inner_never::T` |
| 62 | +help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern as shown |
| 63 | + | |
| 64 | +LL ~ match y { |
| 65 | +LL + _ => todo!(), |
| 66 | +LL + } |
| 67 | + | |
| 68 | + |
| 69 | +error: unconstrained opaque type |
| 70 | + --> $DIR/impl-trait.rs:70:14 |
| 71 | + | |
| 72 | +LL | type T = impl Copy; |
| 73 | + | ^^^^^^^^^ |
| 74 | + | |
| 75 | + = note: `T` must be used in combination with a concrete type within the same item |
| 76 | + |
| 77 | +error: unreachable pattern |
| 78 | + --> $DIR/impl-trait.rs:83:9 |
| 79 | + | |
| 80 | +LL | _ => {} |
| 81 | + | - matches any value |
| 82 | +LL | Some((a, b)) => {} |
| 83 | + | ^^^^^^^^^^^^ unreachable pattern |
| 84 | + |
| 85 | +error[E0004]: non-exhaustive patterns: type `U` is non-empty |
| 86 | + --> $DIR/impl-trait.rs:90:21 |
| 87 | + | |
| 88 | +LL | if true { match u {} } else { x } |
| 89 | + | ^ |
| 90 | + | |
| 91 | + = note: the matched value is of type `U` |
| 92 | +help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern as shown |
| 93 | + | |
| 94 | +LL ~ if true { match u { |
| 95 | +LL + _ => todo!(), |
| 96 | +LL ~ } } else { x } |
| 97 | + | |
| 98 | + |
| 99 | +error: unconstrained opaque type |
| 100 | + --> $DIR/impl-trait.rs:87:10 |
| 101 | + | |
| 102 | +LL | type U = impl Copy; |
| 103 | + | ^^^^^^^^^ |
| 104 | + | |
| 105 | + = note: `U` must be used in combination with a concrete type within the same module |
| 106 | + |
| 107 | +error: unreachable pattern |
| 108 | + --> $DIR/impl-trait.rs:99:9 |
| 109 | + | |
| 110 | +LL | Some((mut x, mut y)) => { |
| 111 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 112 | + |
| 113 | +error: aborting due to 11 previous errors |
| 114 | + |
| 115 | +For more information about this error, try `rustc --explain E0004`. |
0 commit comments