2 ( $ctx:expr, $( $args:expr),* ) => {
4 //~^ no field `trace` on type `&T`
5 println!( $( $args, )* );
10 // Create a structure.
15 // Generic wrapper calls log! with a structure.
16 fn wrap<T>(context: &T) -> ()
18 log!(context, "entered wrapper");
19 //~^ in this expansion of log!
23 // Create a structure.
24 let x = Foo { trace: true };
25 log!(x, "run started");
26 // Apply a closure which accesses internal fields.
28 log!(x, "run finished");