fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0004]: non-exhaustive patterns: `_` not covered 2 --> $DIR/pointer-sized-int.rs:12:11 3 | 4LL | match 0usize { 5 | ^^^^^^ pattern `_` not covered 6 | 7 = note: the matched value is of type `usize` 8 = note: `usize` does not have a fixed maximum value, so a wildcard `_` is necessary to match exhaustively 9 = help: add `#![feature(precise_pointer_size_matching)]` to the crate attributes to enable precise `usize` matching 10help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown 11 | 12LL ~ 0 ..= usize::MAX => {}, 13LL + _ => todo!() 14 | 15 16error[E0004]: non-exhaustive patterns: `_` not covered 17 --> $DIR/pointer-sized-int.rs:17:11 18 | 19LL | match 0isize { 20 | ^^^^^^ pattern `_` not covered 21 | 22 = note: the matched value is of type `isize` 23 = note: `isize` does not have a fixed maximum value, so a wildcard `_` is necessary to match exhaustively 24 = help: add `#![feature(precise_pointer_size_matching)]` to the crate attributes to enable precise `isize` matching 25help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown 26 | 27LL ~ isize::MIN ..= isize::MAX => {}, 28LL + _ => todo!() 29 | 30 31error[E0004]: non-exhaustive patterns: `_` not covered 32 --> $DIR/pointer-sized-int.rs:22:8 33 | 34LL | m!(0usize, 0..=usize::MAX); 35 | ^^^^^^ pattern `_` not covered 36 | 37 = note: the matched value is of type `usize` 38 = note: `usize` does not have a fixed maximum value, so a wildcard `_` is necessary to match exhaustively 39 = help: add `#![feature(precise_pointer_size_matching)]` to the crate attributes to enable precise `usize` matching 40help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown 41 | 42LL | match $s { $($t)+ => {}, _ => todo!() } 43 | ++++++++++++++ 44 45error[E0004]: non-exhaustive patterns: `_` not covered 46 --> $DIR/pointer-sized-int.rs:24:8 47 | 48LL | m!(0usize, 0..5 | 5..=usize::MAX); 49 | ^^^^^^ pattern `_` not covered 50 | 51 = note: the matched value is of type `usize` 52 = note: `usize` does not have a fixed maximum value, so a wildcard `_` is necessary to match exhaustively 53 = help: add `#![feature(precise_pointer_size_matching)]` to the crate attributes to enable precise `usize` matching 54help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown 55 | 56LL | match $s { $($t)+ => {}, _ => todo!() } 57 | ++++++++++++++ 58 59error[E0004]: non-exhaustive patterns: `_` not covered 60 --> $DIR/pointer-sized-int.rs:26:8 61 | 62LL | m!(0usize, 0..usize::MAX | usize::MAX); 63 | ^^^^^^ pattern `_` not covered 64 | 65 = note: the matched value is of type `usize` 66 = note: `usize` does not have a fixed maximum value, so a wildcard `_` is necessary to match exhaustively 67 = help: add `#![feature(precise_pointer_size_matching)]` to the crate attributes to enable precise `usize` matching 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)+ => {}, _ => todo!() } 71 | ++++++++++++++ 72 73error[E0004]: non-exhaustive patterns: `(_, _)` not covered 74 --> $DIR/pointer-sized-int.rs:28:8 75 | 76LL | m!((0usize, true), (0..5, true) | (5..=usize::MAX, true) | (0..=usize::MAX, false)); 77 | ^^^^^^^^^^^^^^ pattern `(_, _)` not covered 78 | 79 = note: the matched value is of type `(usize, bool)` 80 = note: `usize` does not have a fixed maximum value, so a wildcard `_` is necessary to match exhaustively 81 = help: add `#![feature(precise_pointer_size_matching)]` to the crate attributes to enable precise `usize` matching 82help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown 83 | 84LL | match $s { $($t)+ => {}, (_, _) => todo!() } 85 | +++++++++++++++++++ 86 87error[E0004]: non-exhaustive patterns: `_` not covered 88 --> $DIR/pointer-sized-int.rs:31:8 89 | 90LL | m!(0isize, isize::MIN..=isize::MAX); 91 | ^^^^^^ pattern `_` not covered 92 | 93 = note: the matched value is of type `isize` 94 = note: `isize` does not have a fixed maximum value, so a wildcard `_` is necessary to match exhaustively 95 = help: add `#![feature(precise_pointer_size_matching)]` to the crate attributes to enable precise `isize` matching 96help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown 97 | 98LL | match $s { $($t)+ => {}, _ => todo!() } 99 | ++++++++++++++ 100 101error[E0004]: non-exhaustive patterns: `_` not covered 102 --> $DIR/pointer-sized-int.rs:33:8 103 | 104LL | m!(0isize, isize::MIN..5 | 5..=isize::MAX); 105 | ^^^^^^ pattern `_` not covered 106 | 107 = note: the matched value is of type `isize` 108 = note: `isize` does not have a fixed maximum value, so a wildcard `_` is necessary to match exhaustively 109 = help: add `#![feature(precise_pointer_size_matching)]` to the crate attributes to enable precise `isize` matching 110help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown 111 | 112LL | match $s { $($t)+ => {}, _ => todo!() } 113 | ++++++++++++++ 114 115error[E0004]: non-exhaustive patterns: `_` not covered 116 --> $DIR/pointer-sized-int.rs:35:8 117 | 118LL | m!(0isize, isize::MIN..isize::MAX | isize::MAX); 119 | ^^^^^^ pattern `_` not covered 120 | 121 = note: the matched value is of type `isize` 122 = note: `isize` does not have a fixed maximum value, so a wildcard `_` is necessary to match exhaustively 123 = help: add `#![feature(precise_pointer_size_matching)]` to the crate attributes to enable precise `isize` matching 124help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown 125 | 126LL | match $s { $($t)+ => {}, _ => todo!() } 127 | ++++++++++++++ 128 129error[E0004]: non-exhaustive patterns: `(_, _)` not covered 130 --> $DIR/pointer-sized-int.rs:37:8 131 | 132LL | m!((0isize, true), (isize::MIN..5, true) 133 | ^^^^^^^^^^^^^^ pattern `(_, _)` not covered 134 | 135 = note: the matched value is of type `(isize, bool)` 136 = note: `isize` does not have a fixed maximum value, so a wildcard `_` is necessary to match exhaustively 137 = help: add `#![feature(precise_pointer_size_matching)]` to the crate attributes to enable precise `isize` matching 138help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown 139 | 140LL | match $s { $($t)+ => {}, (_, _) => todo!() } 141 | +++++++++++++++++++ 142 143error[E0004]: non-exhaustive patterns: `_` not covered 144 --> $DIR/pointer-sized-int.rs:41:11 145 | 146LL | match 0isize { 147 | ^^^^^^ pattern `_` not covered 148 | 149 = note: the matched value is of type `isize` 150 = note: `isize` does not have a fixed maximum value, so a wildcard `_` is necessary to match exhaustively 151 = help: add `#![feature(precise_pointer_size_matching)]` to the crate attributes to enable precise `isize` matching 152help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown 153 | 154LL ~ 1 ..= isize::MAX => {}, 155LL + _ => todo!() 156 | 157 158error[E0004]: non-exhaustive patterns: type `usize` is non-empty 159 --> $DIR/pointer-sized-int.rs:48:11 160 | 161LL | match 7usize {} 162 | ^^^^^^ 163 | 164 = note: the matched value is of type `usize` 165help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern as shown 166 | 167LL ~ match 7usize { 168LL + _ => todo!(), 169LL + } 170 | 171 172error: aborting due to 12 previous errors 173 174For more information about this error, try `rustc --explain E0004`.