]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/consts/const-endianess.rs
remove useless ident() functions in const tests and replace the useful ones by black_...
[rust.git] / src / test / run-pass / consts / const-endianess.rs
index cbe6d864c9c3a7eb35be33cb0679a3a2759e9546..936f31954d3dd446b8b000f43def12caf4e93df8 100644 (file)
@@ -2,7 +2,7 @@
 #![feature(test)]
 
 extern crate test;
-use test::black_box as b;
+use test::black_box as b; // prevent promotion of the argument and const-propagation of the result
 
 const BE_U32: u32 = 55u32.to_be();
 const LE_U32: u32 = 55u32.to_le();