]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/consts/min_const_fn/cmp_fn_pointers.rs
Rollup merge of #99769 - bjorn3:sync_cg_clif-2022-07-26, r=bjorn3
[rust.git] / src / test / ui / consts / min_const_fn / cmp_fn_pointers.rs
index e07b269c386eabee6dfc0c5e59c673e973e82bd2..9a2775688c6fa43c1f1a2b1c515b7350de3de96d 100644 (file)
@@ -1,6 +1,6 @@
 const fn cmp(x: fn(), y: fn()) -> bool {
     unsafe { x == y }
-    //~^ ERROR pointers cannot be reliably compared
+    //~^ ERROR can't compare
 }
 
 fn main() {}