rust/tests/ui/proc-macro/literal-to-string.rs
2023-11-01 09:16:34 +09:00

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"#
}
}