]> git.proxmox.com Git - rustc.git/blob - tests/ui/proc-macro/doc-comment-preserved.stdout
New upstream version 1.76.0+dfsg1
[rustc.git] / tests / ui / proc-macro / doc-comment-preserved.stdout
1 PRINT-BANG INPUT (DISPLAY): /**
2 *******
3 * DOC *
4 * DOC *
5 * DOC *
6 *******
7 */
8 pub struct S;
9 PRINT-BANG RE-COLLECTED (DISPLAY): #[doc = "\n*******\n* DOC *\n* DOC *\n* DOC *\n*******\n"] pub struct S ;
10 PRINT-BANG INPUT (DEBUG): TokenStream [
11 Punct {
12 ch: '#',
13 spacing: Alone,
14 span: $DIR/doc-comment-preserved.rs:13:1: 19:3 (#0),
15 },
16 Group {
17 delimiter: Bracket,
18 stream: TokenStream [
19 Ident {
20 ident: "doc",
21 span: $DIR/doc-comment-preserved.rs:13:1: 19:3 (#0),
22 },
23 Punct {
24 ch: '=',
25 spacing: Alone,
26 span: $DIR/doc-comment-preserved.rs:13:1: 19:3 (#0),
27 },
28 Literal {
29 kind: Str,
30 symbol: "\n*******\n* DOC *\n* DOC *\n* DOC *\n*******\n",
31 suffix: None,
32 span: $DIR/doc-comment-preserved.rs:13:1: 19:3 (#0),
33 },
34 ],
35 span: $DIR/doc-comment-preserved.rs:13:1: 19:3 (#0),
36 },
37 Ident {
38 ident: "pub",
39 span: $DIR/doc-comment-preserved.rs:20:1: 20:4 (#0),
40 },
41 Ident {
42 ident: "struct",
43 span: $DIR/doc-comment-preserved.rs:20:5: 20:11 (#0),
44 },
45 Ident {
46 ident: "S",
47 span: $DIR/doc-comment-preserved.rs:20:12: 20:13 (#0),
48 },
49 Punct {
50 ch: ';',
51 spacing: Alone,
52 span: $DIR/doc-comment-preserved.rs:20:13: 20:14 (#0),
53 },
54 ]