#[cfg(feature = "ok")]
fn main() {
let string_instance: String = "Hello".to_string();
println!("Before fn = {:p}", &string_instance);
let closure_instance = |hello: &str| {
println!("{} Friend!", hello);
println!("Inside fn = {:p}", &hello);
};
closure_instance(&string_instance);
println!("After fn = {:p}", &string_instance);
println!("{} World!", string_instance);
}
#[cfg(feature = "err")]
fn main() {
let string_instance: String = "Hello".to_string();
let closure_instance = |hello: String| println!("{} Friend!", hello);
closure_instance(string_instance);
println!("{} World!", string_instance);
}
#[cfg(all(not(feature = "ok"), not(feature = "err")))]
fn main() {
use aide::hello;
hello();
}