]> git.proxmox.com Git - rustc.git/blobdiff - src/liballoc/tests/str.rs
New upstream version 1.46.0~beta.2+dfsg1
[rustc.git] / src / liballoc / tests / str.rs
index b703df6f3cb7de00a6d1974b418482ae2919a676..eee98d45340429f4f759f8bee607e8bd0ca2f5da 100644 (file)
@@ -566,13 +566,13 @@ mod slice_index {
                 data: "hello";
                 // note: using 0 specifically ensures that the result of overflowing is 0..0,
                 //       so that `get` doesn't simply return None for the wrong reason.
-                bad: data[0..=usize::max_value()];
+                bad: data[0..=usize::MAX];
                 message: "maximum usize";
             }
 
             in mod rangetoinclusive {
                 data: "hello";
-                bad: data[..=usize::max_value()];
+                bad: data[..=usize::MAX];
                 message: "maximum usize";
             }
         }