]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/usefulness/non-exhaustive-pattern-pointer-size-int.stderr
Add test for eval order for a+=b
[rust.git] / src / test / ui / pattern / usefulness / non-exhaustive-pattern-pointer-size-int.stderr
1 error[E0004]: non-exhaustive patterns: `_` not covered
2   --> $DIR/non-exhaustive-pattern-pointer-size-int.rs:4:11
3    |
4 LL |     match 0usize {
5    |           ^^^^^^ pattern `_` not covered
6    |
7    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
8    = note: the matched value is of type `usize`
9    = note: `usize` does not have a fixed maximum value, so a wildcard `_` is necessary to match exhaustively
10    = help: add `#![feature(precise_pointer_size_matching)]` to the crate attributes to enable precise `usize` matching
11
12 error[E0004]: non-exhaustive patterns: `_` not covered
13   --> $DIR/non-exhaustive-pattern-pointer-size-int.rs:12:11
14    |
15 LL |     match 0isize {
16    |           ^^^^^^ pattern `_` not covered
17    |
18    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
19    = note: the matched value is of type `isize`
20    = note: `isize` does not have a fixed maximum value, so a wildcard `_` is necessary to match exhaustively
21    = help: add `#![feature(precise_pointer_size_matching)]` to the crate attributes to enable precise `isize` matching
22
23 error[E0004]: non-exhaustive patterns: type `usize` is non-empty
24   --> $DIR/non-exhaustive-pattern-pointer-size-int.rs:20:11
25    |
26 LL |     match 7usize {}
27    |           ^^^^^^
28    |
29    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
30    = note: the matched value is of type `usize`
31
32 error: aborting due to 3 previous errors
33
34 For more information about this error, try `rustc --explain E0004`.