]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/debug/dump-debug.rs
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / proc-macro / debug / dump-debug.rs
1 // run-pass
2 // aux-build:macro-dump-debug.rs
3
4 extern crate macro_dump_debug;
5 use macro_dump_debug::dump_debug;
6
7 dump_debug! {
8     ident   // ident
9     r#ident // raw ident
10     ,       // alone punct
11     ==>     // joint punct
12     ()      // empty group
13     [_]     // nonempty group
14
15     // unsuffixed literals
16     0
17     1.0
18     "S"
19     b"B"
20     r"R"
21     r##"R"##
22     br"BR"
23     br##"BR"##
24     'C'
25     b'B'
26
27     // suffixed literals
28     0q
29     1.0q
30     "S"q
31     b"B"q
32     r"R"q
33     r##"R"##q
34     br"BR"q
35     br##"BR"##q
36     'C'q
37     b'B'q
38 }
39
40 fn main() {}