]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/const-eval/match-test-ptr-null.rs
Rebase fallout: new tests need updated ui output
[rust.git] / src / test / ui / const-eval / match-test-ptr-null.rs
index 19b3dcc318154321cacc57ae1afe79e6f201c8f1..81fcd23fb786da02e579e1e3e30669941b98021b 100644 (file)
@@ -13,7 +13,7 @@ fn main() {
     // that pointer comparison is disallowed, not that parts of a pointer are accessed as raw
     // bytes.
     let _: [u8; 0] = [4; { //~ ERROR could not evaluate repeat length
-        match &1 as *const i32 as usize { //~ ERROR raw pointers cannot be cast to integers
+        match &1 as *const i32 as usize { //~ ERROR casting pointers to integers in constants
             0 => 42, //~ ERROR constant contains unimplemented expression type
             //~^ NOTE "pointer arithmetic or comparison" needs an rfc before being allowed
             n => n,