|
| 1 | +warning: the feature `min_exhaustive_patterns` is incomplete and may not be safe to use and/or cause compiler crashes |
| 2 | + --> $DIR/slice_of_empty.rs:3:46 |
| 3 | + | |
| 4 | +LL | #![cfg_attr(min_exhaustive_patterns, feature(min_exhaustive_patterns))] |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^^^^ |
| 6 | + | |
| 7 | + = note: see issue #119612 <https://github.com/rust-lang/rust/issues/119612> for more information |
| 8 | + = note: `#[warn(incomplete_features)]` on by default |
| 9 | + |
| 10 | +error[E0004]: non-exhaustive patterns: `&[_, ..]` not covered |
| 11 | + --> $DIR/slice_of_empty.rs:11:11 |
| 12 | + | |
| 13 | +LL | match nevers { |
| 14 | + | ^^^^^^ pattern `&[_, ..]` not covered |
| 15 | + | |
| 16 | + = note: the matched value is of type `&[!]` |
| 17 | +help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown |
| 18 | + | |
| 19 | +LL ~ &[] => (), |
| 20 | +LL ~ &[_, ..] => todo!(), |
| 21 | + | |
| 22 | + |
| 23 | +error[E0004]: non-exhaustive patterns: `&[]` and `&[_, _, ..]` not covered |
| 24 | + --> $DIR/slice_of_empty.rs:22:11 |
| 25 | + | |
| 26 | +LL | match nevers { |
| 27 | + | ^^^^^^ patterns `&[]` and `&[_, _, ..]` not covered |
| 28 | + | |
| 29 | + = note: the matched value is of type `&[!]` |
| 30 | +help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern, a match arm with multiple or-patterns as shown, or multiple match arms |
| 31 | + | |
| 32 | +LL ~ &[_] => (), |
| 33 | +LL ~ &[] | &[_, _, ..] => todo!(), |
| 34 | + | |
| 35 | + |
| 36 | +error: aborting due to 2 previous errors; 1 warning emitted |
| 37 | + |
| 38 | +For more information about this error, try `rustc --explain E0004`. |
0 commit comments