A macro that allows you to implement code that will be automatically executed after the function code has finished, be it the end of the function or even a panic state.
usedrop_code::drop_code;#[allow(unreachable_code)]fnmain(){drop_code!{println!("7 line drop code logic");// 3
}println!("10 line, main code");// 1
panic!("10 line code");// 2
println!("12 line, end code");}