fn black_box<T>(x: T) -> T {
    unsafe {
        asm!("" :: "r"(&x));
    }

    x
}
// Magic to prevent optimizations like "constant folding" which is when LLVM
// performs arithmetic at compile time. This is a copy of `test::black_box`.
Magic to prevent optimizations like "constant folding" which is when LLVM
performs arithmetic at compile time. This is a copy of `test::black_box`.
Magic to prevent optimizations like " constant folding " which is when LLVM performs arithmetic at compile time . This is a copy of ` test :: black_box ` .
fn black_box<T>(x: T) -> T {
    unsafe {
        asm!("" :: "r"(&x));
    }
    x
}
fn black_box < T > ( x : T ) -> T { unsafe { asm ! ( " " " " ( x ) ) ; } x }
Magic to prevent optimizations like "constant folding" which is when LLVM
performs arithmetic at compile time.
Magic to prevent optimizations like " constant folding " which is when LLVM performs arithmetic at compile time .
x
T