fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0004]: non-exhaustive patterns: `u8::MAX` not covered 2 --> $DIR/exhaustiveness.rs:47:8 3 | 4LL | m!(0u8, 0..255); 5 | ^^^ pattern `u8::MAX` not covered 6 | 7 = note: the matched value is of type `u8` 8help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown 9 | 10LL | match $s { $($t)+ => {}, u8::MAX => todo!() } 11 | ++++++++++++++++++++ 12 13error[E0004]: non-exhaustive patterns: `u8::MAX` not covered 14 --> $DIR/exhaustiveness.rs:48:8 15 | 16LL | m!(0u8, 0..=254); 17 | ^^^ pattern `u8::MAX` not covered 18 | 19 = note: the matched value is of type `u8` 20help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown 21 | 22LL | match $s { $($t)+ => {}, u8::MAX => todo!() } 23 | ++++++++++++++++++++ 24 25error[E0004]: non-exhaustive patterns: `0_u8` not covered 26 --> $DIR/exhaustiveness.rs:49:8 27 | 28LL | m!(0u8, 1..=255); 29 | ^^^ pattern `0_u8` not covered 30 | 31 = note: the matched value is of type `u8` 32help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown 33 | 34LL | match $s { $($t)+ => {}, 0_u8 => todo!() } 35 | +++++++++++++++++ 36 37error[E0004]: non-exhaustive patterns: `42_u8` not covered 38 --> $DIR/exhaustiveness.rs:50:8 39 | 40LL | m!(0u8, 0..42 | 43..=255); 41 | ^^^ pattern `42_u8` not covered 42 | 43 = note: the matched value is of type `u8` 44help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown 45 | 46LL | match $s { $($t)+ => {}, 42_u8 => todo!() } 47 | ++++++++++++++++++ 48 49error[E0004]: non-exhaustive patterns: `i8::MAX` not covered 50 --> $DIR/exhaustiveness.rs:51:8 51 | 52LL | m!(0i8, -128..127); 53 | ^^^ pattern `i8::MAX` not covered 54 | 55 = note: the matched value is of type `i8` 56help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown 57 | 58LL | match $s { $($t)+ => {}, i8::MAX => todo!() } 59 | ++++++++++++++++++++ 60 61error[E0004]: non-exhaustive patterns: `i8::MAX` not covered 62 --> $DIR/exhaustiveness.rs:52:8 63 | 64LL | m!(0i8, -128..=126); 65 | ^^^ pattern `i8::MAX` not covered 66 | 67 = note: the matched value is of type `i8` 68help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown 69 | 70LL | match $s { $($t)+ => {}, i8::MAX => todo!() } 71 | ++++++++++++++++++++ 72 73error[E0004]: non-exhaustive patterns: `i8::MIN` not covered 74 --> $DIR/exhaustiveness.rs:53:8 75 | 76LL | m!(0i8, -127..=127); 77 | ^^^ pattern `i8::MIN` not covered 78 | 79 = note: the matched value is of type `i8` 80help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown 81 | 82LL | match $s { $($t)+ => {}, i8::MIN => todo!() } 83 | ++++++++++++++++++++ 84 85error[E0004]: non-exhaustive patterns: `0_i8` not covered 86 --> $DIR/exhaustiveness.rs:54:11 87 | 88LL | match 0i8 { 89 | ^^^ pattern `0_i8` not covered 90 | 91 = note: the matched value is of type `i8` 92help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown 93 | 94LL ~ 1 ..= i8::MAX => {}, 95LL + 0_i8 => todo!() 96 | 97 98error[E0004]: non-exhaustive patterns: `u128::MAX` not covered 99 --> $DIR/exhaustiveness.rs:59:8 100 | 101LL | m!(0u128, 0..=ALMOST_MAX); 102 | ^^^^^ pattern `u128::MAX` not covered 103 | 104 = note: the matched value is of type `u128` 105help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown 106 | 107LL | match $s { $($t)+ => {}, u128::MAX => todo!() } 108 | ++++++++++++++++++++++ 109 110error[E0004]: non-exhaustive patterns: `5_u128..=u128::MAX` not covered 111 --> $DIR/exhaustiveness.rs:60:8 112 | 113LL | m!(0u128, 0..=4); 114 | ^^^^^ pattern `5_u128..=u128::MAX` not covered 115 | 116 = note: the matched value is of type `u128` 117help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown 118 | 119LL | match $s { $($t)+ => {}, 5_u128..=u128::MAX => todo!() } 120 | +++++++++++++++++++++++++++++++ 121 122error[E0004]: non-exhaustive patterns: `0_u128` not covered 123 --> $DIR/exhaustiveness.rs:61:8 124 | 125LL | m!(0u128, 1..=u128::MAX); 126 | ^^^^^ pattern `0_u128` not covered 127 | 128 = note: the matched value is of type `u128` 129help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown 130 | 131LL | match $s { $($t)+ => {}, 0_u128 => todo!() } 132 | +++++++++++++++++++ 133 134error[E0004]: non-exhaustive patterns: `(126_u8..=127_u8, false)` not covered 135 --> $DIR/exhaustiveness.rs:69:11 136 | 137LL | match (0u8, true) { 138 | ^^^^^^^^^^^ pattern `(126_u8..=127_u8, false)` not covered 139 | 140 = note: the matched value is of type `(u8, bool)` 141help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown 142 | 143LL ~ (0 ..= 255, true) => {}, 144LL + (126_u8..=127_u8, false) => todo!() 145 | 146 147error: aborting due to 12 previous errors 148 149For more information about this error, try `rustc --explain E0004`.