]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-precise_pointer_size_matching.rs
parser will not give wrong help message for 'public'
[rust.git] / src / test / ui / feature-gates / feature-gate-precise_pointer_size_matching.rs
1 fn main() {
2     match 0usize {
3         //~^ ERROR non-exhaustive patterns: `_` not covered
4         //~| NOTE pattern `_` not covered
5         //~| NOTE the matched value is of type `usize`
6         //~| NOTE `usize` does not have a fixed maximum value
7         0..=usize::MAX => {}
8     }
9
10     match 0isize {
11         //~^ ERROR non-exhaustive patterns: `_` not covered
12         //~| NOTE pattern `_` not covered
13         //~| NOTE the matched value is of type `isize`
14         //~| NOTE `isize` does not have a fixed maximum value
15         isize::MIN..=isize::MAX => {}
16     }
17 }