]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/consts/const-extern-fn/const-extern-fn-min-const-fn.rs
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / consts / const-extern-fn / const-extern-fn-min-const-fn.rs
index 76380ebcb6599b13a671da959749f61249a6da13..46748673067cebb02e795c78449a413186722521 100644 (file)
@@ -7,7 +7,7 @@ const unsafe extern "C" fn closure() -> fn() { || {} }
 const unsafe extern "C" fn use_float() { 1.0 + 1.0; }
 //~^ ERROR floating point arithmetic
 const extern "C" fn ptr_cast(val: *const u8) { val as usize; }
-//~^ ERROR casting pointers to integers
+//~^ ERROR pointers cannot be cast to integers
 
 
 fn main() {}