Function test::black_box [] [src]

pub fn black_box<T>(dummy: T) -> T
🔬 This is a nightly-only experimental API. (test)
[]

A function that is opaque to the optimizer, to allow benchmarks to pretend to use outputs to assist in avoiding dead-code elimination.

This function is a no-op, and does not even read from dummy.