[][src]Macro mquote::mquote_spanned

macro_rules! mquote_spanned {
    #[proc_macro_hack] => { ... };
}

Same as mquote!, but applies a given span to all tokens originating within the macro invocation.

Example

let span = proc_macro2::Span::call_site();
mquote_spanned!(span => let _ = Some(12));