rust/tests/ui/proc-macro/literal-to-string.stdout
2024-02-16 20:02:50 +00:00

108 lines
2.1 KiB
Plaintext

TokenStream [
Literal {
kind: Integer,
symbol: "1",
suffix: None,
span: #0 bytes(147..148),
},
Literal {
kind: Integer,
symbol: "17",
suffix: Some("u8"),
span: #0 bytes(157..161),
},
Literal {
kind: Float,
symbol: "42.",
suffix: None,
span: #0 bytes(170..173),
},
Literal {
kind: Float,
symbol: "3.14",
suffix: Some("f32"),
span: #0 bytes(182..189),
},
Literal {
kind: Byte,
symbol: "a",
suffix: None,
span: #0 bytes(198..202),
},
Literal {
kind: Byte,
symbol: "\xFF",
suffix: None,
span: #0 bytes(211..218),
},
Literal {
kind: Char,
symbol: "c",
suffix: None,
span: #0 bytes(227..230),
},
Literal {
kind: Char,
symbol: "\x32",
suffix: None,
span: #0 bytes(239..245),
},
Literal {
kind: Str,
symbol: "\\"str\\"",
suffix: None,
span: #0 bytes(254..263),
},
Literal {
kind: StrRaw(1),
symbol: "\"raw\" str",
suffix: None,
span: #0 bytes(272..286),
},
Literal {
kind: StrRaw(3),
symbol: "very ##\"raw\"## str",
suffix: None,
span: #0 bytes(295..322),
},
Literal {
kind: ByteStr,
symbol: "\\"byte\\" str",
suffix: None,
span: #0 bytes(331..346),
},
Literal {
kind: ByteStrRaw(1),
symbol: "\"raw\" \"byte\" str",
suffix: None,
span: #0 bytes(355..377),
},
Literal {
kind: CStr,
symbol: "\\"c\\" str",
suffix: None,
span: #0 bytes(386..398),
},
Literal {
kind: CStrRaw(1),
symbol: "\"raw\" \"c\" str",
suffix: None,
span: #0 bytes(407..426),
},
]
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"#