about summary refs log tree commit diff
path: root/tests/ui/proc-macro/quote/debug.rs
blob: ce1ef81bedaf1f4e5af9b7c9cb99f08cae91ce23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//@ check-pass
//@ force-host
//@ no-prefer-dynamic
//@ compile-flags: -Z unpretty=expanded
//@ needs-unwind compiling proc macros with panic=abort causes a warning
//@ edition: 2015
//
// This file is not actually used as a proc-macro - instead,
// it's just used to show the output of the `quote!` macro

#![feature(proc_macro_quote)]
#![crate_type = "proc-macro"]

extern crate proc_macro;

fn main() {
    proc_macro::quote! {
        let hello = "world";
        let r#raw_ident = r#"raw"literal"#;
    }
}