41 lines
557 B
Rust
41 lines
557 B
Rust
//@ run-pass
|
|
//@ aux-build:macro-dump-debug.rs
|
|
|
|
extern crate macro_dump_debug;
|
|
use macro_dump_debug::dump_debug;
|
|
|
|
dump_debug! {
|
|
ident // ident
|
|
r#ident // raw ident
|
|
, // alone punct
|
|
==> // joint punct
|
|
() // empty group
|
|
[_] // nonempty group
|
|
|
|
// unsuffixed literals
|
|
0
|
|
1.0
|
|
"S"
|
|
b"B"
|
|
r"R"
|
|
r##"R"##
|
|
br"BR"
|
|
br##"BR"##
|
|
'C'
|
|
b'B'
|
|
|
|
// suffixed literals
|
|
0q
|
|
1.0q
|
|
"S"q
|
|
b"B"q
|
|
r"R"q
|
|
r##"R"##q
|
|
br"BR"q
|
|
br##"BR"##q
|
|
'C'q
|
|
b'B'q
|
|
}
|
|
|
|
fn main() {}
|