mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
27 lines
460 B
Rust
27 lines
460 B
Rust
// check-pass
|
|
// edition: 2021
|
|
#![feature(c_str_literals)]
|
|
|
|
// 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"#
|
|
}
|
|
}
|