Macro std::compile_warn
Emits a compile-time warning.
Example
use std::compile_warn;
fn md5(_data: &[u8]) -> u128 {
compile_warn!("md5 is a dead algorithm, use something better");
0xdeadDEADdeadDEADdeadDEADdeadDEAD
}
println!("{}", md5("hello world"));
Run this example