mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
60 lines
1.2 KiB
Plaintext
60 lines
1.2 KiB
Plaintext
PRINT-BANG INPUT (DISPLAY): A
|
|
PRINT-BANG INPUT (DEBUG): TokenStream [
|
|
Ident {
|
|
ident: "A",
|
|
span: #0 bytes(506..507),
|
|
},
|
|
]
|
|
PRINT-ATTR INPUT (DISPLAY): const A : u8 = 0;
|
|
PRINT-ATTR INPUT (DEBUG): TokenStream [
|
|
Ident {
|
|
ident: "const",
|
|
span: #3 bytes(419..424),
|
|
},
|
|
Ident {
|
|
ident: "A",
|
|
span: #0 bytes(506..507),
|
|
},
|
|
Punct {
|
|
ch: ':',
|
|
spacing: Alone,
|
|
span: #3 bytes(427..428),
|
|
},
|
|
Ident {
|
|
ident: "u8",
|
|
span: #3 bytes(429..431),
|
|
},
|
|
Punct {
|
|
ch: '=',
|
|
spacing: Alone,
|
|
span: #3 bytes(432..433),
|
|
},
|
|
Literal {
|
|
kind: Integer,
|
|
symbol: "0",
|
|
suffix: None,
|
|
span: #3 bytes(434..435),
|
|
},
|
|
Punct {
|
|
ch: ';',
|
|
spacing: Alone,
|
|
span: #3 bytes(435..436),
|
|
},
|
|
]
|
|
PRINT-DERIVE INPUT (DISPLAY): struct A {}
|
|
PRINT-DERIVE INPUT (DEBUG): TokenStream [
|
|
Ident {
|
|
ident: "struct",
|
|
span: #3 bytes(471..477),
|
|
},
|
|
Ident {
|
|
ident: "A",
|
|
span: #0 bytes(506..507),
|
|
},
|
|
Group {
|
|
delimiter: Brace,
|
|
stream: TokenStream [],
|
|
span: #3 bytes(481..483),
|
|
},
|
|
]
|