]> git.proxmox.com Git - rustc.git/blame - src/test/ui/feature-gates/feature-gate-precise_pointer_size_matching.stderr
New upstream version 1.61.0+dfsg1
[rustc.git] / src / test / ui / feature-gates / feature-gate-precise_pointer_size_matching.stderr
CommitLineData
0731742a 1error[E0004]: non-exhaustive patterns: `_` not covered
fc512014 2 --> $DIR/feature-gate-precise_pointer_size_matching.rs:2:11
0731742a 3 |
532ac7d7 4LL | match 0usize {
0731742a 5 | ^^^^^^ pattern `_` not covered
532ac7d7 6 |
ba9703b0 7 = note: the matched value is of type `usize`
f035d41b
XL
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
ee023bcb
FG
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 |
0731742a
XL
15
16error[E0004]: non-exhaustive patterns: `_` not covered
17 --> $DIR/feature-gate-precise_pointer_size_matching.rs:10:11
18 |
532ac7d7 19LL | match 0isize {
0731742a 20 | ^^^^^^ pattern `_` not covered
532ac7d7 21 |
ba9703b0 22 = note: the matched value is of type `isize`
f035d41b
XL
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
ee023bcb
FG
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 |
0731742a
XL
30
31error: aborting due to 2 previous errors
32
33For more information about this error, try `rustc --explain E0004`.