1#[cfg(feature = "ok")]
11pub fn adjoin() {
12 let string_instance: String = "Hello".to_string();
17
18 println!("Before fn = {:p}", &string_instance);
19 let closure_instance = |hello: &str| {
20 println!("{} Friend!", hello);
21 println!("Inside fn = {:p}", &hello);
22 };
23 closure_instance(&string_instance);
24 println!("After fn = {:p}", &string_instance);
25
26 println!("{} World!", string_instance);
27
28 }
30
31#[cfg(feature = "err_01")]
33pub fn adjoin() {
34 let string_instance: String = "Hello".to_string();
39
40 let closure_instance = |hello: String| println!("{} Friend!", hello);
41 closure_instance(string_instance);
42
43 println!("{} World!", string_instance);
44
45 }
47
48
49#[cfg(all(not(feature = "ok"), not(feature = "err_01")))]
51pub fn adjoin() {
52 use aide::hello;
53 hello();
54}