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 52 53 54 55 56 57 58 59 60 61 62 63
|
error[E0004]: non-exhaustive patterns: `deref!(true)` not covered
--> $DIR/non-exhaustive.rs:7:11
|
LL | match Box::new(false) {
| ^^^^^^^^^^^^^^^ pattern `deref!(true)` not covered
|
note: `Box<bool>` defined here
--> $SRC_DIR/alloc/src/boxed.rs:LL:COL
= note: the matched value is of type `Box<bool>`
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
|
LL ~ false => {},
LL + deref!(true) => todo!()
|
error[E0004]: non-exhaustive patterns: `deref!(deref!(false))` not covered
--> $DIR/non-exhaustive.rs:12:11
|
LL | match Box::new(Box::new(false)) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^ pattern `deref!(deref!(false))` not covered
|
note: `Box<Box<bool>>` defined here
--> $SRC_DIR/alloc/src/boxed.rs:LL:COL
= note: the matched value is of type `Box<Box<bool>>`
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
|
LL ~ true => {},
LL + deref!(deref!(false)) => todo!()
|
error[E0004]: non-exhaustive patterns: `deref!((false, deref!(false)))` and `deref!((true, deref!(true)))` not covered
--> $DIR/non-exhaustive.rs:17:11
|
LL | match Box::new((true, Box::new(false))) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ patterns `deref!((false, deref!(false)))` and `deref!((true, deref!(true)))` not covered
|
note: `Box<(bool, Box<bool>)>` defined here
--> $SRC_DIR/alloc/src/boxed.rs:LL:COL
= note: the matched value is of type `Box<(bool, Box<bool>)>`
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
|
LL ~ (false, true) => {},
LL + deref!((false, deref!(false))) | deref!((true, deref!(true))) => todo!()
|
error[E0004]: non-exhaustive patterns: `deref!((deref!(T::C), _))` not covered
--> $DIR/non-exhaustive.rs:24:11
|
LL | match Box::new((Box::new(T::A), Box::new(T::A))) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pattern `deref!((deref!(T::C), _))` not covered
|
note: `Box<(Box<T>, Box<T>)>` defined here
--> $SRC_DIR/alloc/src/boxed.rs:LL:COL
= note: the matched value is of type `Box<(Box<T>, Box<T>)>`
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
|
LL ~ (T::A | T::B, T::C) => {},
LL + deref!((deref!(T::C), _)) => todo!()
|
error: aborting due to 4 previous errors
For more information about this error, try `rustc --explain E0004`.
|