replace MIN/MAX constants with min_value/max_value functions
MIN and MAX were breaking the build for me. min_value and max_value do not.
This commit is contained in:
parent
a802ec1f65
commit
dba66788bd
2 changed files with 6 additions and 6 deletions
|
@ -14,13 +14,13 @@ use std::panic;
|
|||
|
||||
fn main() {
|
||||
let r = panic::catch_unwind(|| {
|
||||
let mut it = u8::MAX..;
|
||||
let mut it = u8::max_value()..;
|
||||
it.next();
|
||||
});
|
||||
assert!(r.is_err());
|
||||
|
||||
let r = panic::catch_unwind(|| {
|
||||
let mut it = i8::MAX..;
|
||||
let mut it = i8::max_value()..;
|
||||
it.next();
|
||||
});
|
||||
assert!(r.is_err());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue