mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
26 lines
432 B
Rust
26 lines
432 B
Rust
// check-pass
|
|
// edition: 2021
|
|
|
|
// aux-build: print-tokens.rs
|
|
extern crate print_tokens;
|
|
|
|
fn main() {
|
|
print_tokens::print_tokens! {
|
|
1
|
|
17u8
|
|
42.
|
|
3.14f32
|
|
b'a'
|
|
b'\xFF'
|
|
'c'
|
|
'\x32'
|
|
"\"str\""
|
|
r#""raw" str"#
|
|
r###"very ##"raw"## str"###
|
|
b"\"byte\" str"
|
|
br#""raw" "byte" str"#
|
|
c"\"c\" str"
|
|
cr#""raw" "c" str"#
|
|
}
|
|
}
|