|
| 1 | +error[E0004]: non-exhaustive patterns: `deref!(true)` not covered |
| 2 | + --> $DIR/non-exhaustive.rs:7:11 |
| 3 | + | |
| 4 | +LL | match Box::new(false) { |
| 5 | + | ^^^^^^^^^^^^^^^ pattern `deref!(true)` not covered |
| 6 | + | |
| 7 | +note: `Box<bool>` defined here |
| 8 | + --> $SRC_DIR/alloc/src/boxed.rs:LL:COL |
| 9 | + = note: the matched value is of type `Box<bool>` |
| 10 | +help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown |
| 11 | + | |
| 12 | +LL ~ false => {}, |
| 13 | +LL + deref!(true) => todo!() |
| 14 | + | |
| 15 | + |
| 16 | +error[E0004]: non-exhaustive patterns: `deref!(deref!(false))` not covered |
| 17 | + --> $DIR/non-exhaustive.rs:12:11 |
| 18 | + | |
| 19 | +LL | match Box::new(Box::new(false)) { |
| 20 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^ pattern `deref!(deref!(false))` not covered |
| 21 | + | |
| 22 | +note: `Box<Box<bool>>` defined here |
| 23 | + --> $SRC_DIR/alloc/src/boxed.rs:LL:COL |
| 24 | + = note: the matched value is of type `Box<Box<bool>>` |
| 25 | +help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown |
| 26 | + | |
| 27 | +LL ~ true => {}, |
| 28 | +LL + deref!(deref!(false)) => todo!() |
| 29 | + | |
| 30 | + |
| 31 | +error[E0004]: non-exhaustive patterns: `deref!((false, deref!(false)))` and `deref!((true, deref!(true)))` not covered |
| 32 | + --> $DIR/non-exhaustive.rs:17:11 |
| 33 | + | |
| 34 | +LL | match Box::new((true, Box::new(false))) { |
| 35 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ patterns `deref!((false, deref!(false)))` and `deref!((true, deref!(true)))` not covered |
| 36 | + | |
| 37 | +note: `Box<(bool, Box<bool>)>` defined here |
| 38 | + --> $SRC_DIR/alloc/src/boxed.rs:LL:COL |
| 39 | + = note: the matched value is of type `Box<(bool, Box<bool>)>` |
| 40 | +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 |
| 41 | + | |
| 42 | +LL ~ (false, true) => {}, |
| 43 | +LL + deref!((false, deref!(false))) | deref!((true, deref!(true))) => todo!() |
| 44 | + | |
| 45 | + |
| 46 | +error[E0004]: non-exhaustive patterns: `deref!((deref!(T::C), _))` not covered |
| 47 | + --> $DIR/non-exhaustive.rs:24:11 |
| 48 | + | |
| 49 | +LL | match Box::new((Box::new(T::A), Box::new(T::A))) { |
| 50 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pattern `deref!((deref!(T::C), _))` not covered |
| 51 | + | |
| 52 | +note: `Box<(Box<T>, Box<T>)>` defined here |
| 53 | + --> $SRC_DIR/alloc/src/boxed.rs:LL:COL |
| 54 | + = note: the matched value is of type `Box<(Box<T>, Box<T>)>` |
| 55 | +help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown |
| 56 | + | |
| 57 | +LL ~ (T::A | T::B, T::C) => {}, |
| 58 | +LL + deref!((deref!(T::C), _)) => todo!() |
| 59 | + | |
| 60 | + |
| 61 | +error: aborting due to 4 previous errors |
| 62 | + |
| 63 | +For more information about this error, try `rustc --explain E0004`. |
0 commit comments