PRINT-ATTR INPUT (DISPLAY): fn foo < T : MyTrait < MyStruct < { true } >> > () { } PRINT-ATTR INPUT (DEBUG): TokenStream [ Ident { ident: "fn", span: $DIR/attr-complex-fn.rs:19:1: 19:3 (#0), }, Ident { ident: "foo", span: $DIR/attr-complex-fn.rs:19:4: 19:7 (#0), }, Punct { ch: '<', spacing: Alone, span: $DIR/attr-complex-fn.rs:19:7: 19:8 (#0), }, Ident { ident: "T", span: $DIR/attr-complex-fn.rs:19:8: 19:9 (#0), }, Punct { ch: ':', spacing: Alone, span: $DIR/attr-complex-fn.rs:19:9: 19:10 (#0), }, Ident { ident: "MyTrait", span: $DIR/attr-complex-fn.rs:19:11: 19:18 (#0), }, Punct { ch: '<', spacing: Alone, span: $DIR/attr-complex-fn.rs:19:18: 19:19 (#0), }, Ident { ident: "MyStruct", span: $DIR/attr-complex-fn.rs:19:19: 19:27 (#0), }, Punct { ch: '<', spacing: Alone, span: $DIR/attr-complex-fn.rs:19:27: 19:28 (#0), }, Group { delimiter: Brace, stream: TokenStream [ Ident { ident: "true", span: $DIR/attr-complex-fn.rs:19:30: 19:34 (#0), }, ], span: $DIR/attr-complex-fn.rs:19:28: 19:36 (#0), }, Punct { ch: '>', spacing: Joint, span: $DIR/attr-complex-fn.rs:19:36: 19:38 (#0), }, Punct { ch: '>', spacing: Joint, span: $DIR/attr-complex-fn.rs:19:36: 19:38 (#0), }, Punct { ch: '>', spacing: Alone, span: $DIR/attr-complex-fn.rs:19:38: 19:39 (#0), }, Group { delimiter: Parenthesis, stream: TokenStream [], span: $DIR/attr-complex-fn.rs:19:39: 19:41 (#0), }, Group { delimiter: Brace, stream: TokenStream [], span: $DIR/attr-complex-fn.rs:19:42: 19:44 (#0), }, ] PRINT-ATTR INPUT (DISPLAY): impl < T > MyTrait < T > for MyStruct < { true } > { # ! [rustc_dummy] } PRINT-ATTR INPUT (DEBUG): TokenStream [ Ident { ident: "impl", span: $DIR/attr-complex-fn.rs:21:1: 24:2 (#0), }, Punct { ch: '<', spacing: Alone, span: $DIR/attr-complex-fn.rs:21:1: 24:2 (#0), }, Ident { ident: "T", span: $DIR/attr-complex-fn.rs:21:1: 24:2 (#0), }, Punct { ch: '>', spacing: Alone, span: $DIR/attr-complex-fn.rs:21:1: 24:2 (#0), }, Ident { ident: "MyTrait", span: $DIR/attr-complex-fn.rs:21:1: 24:2 (#0), }, Punct { ch: '<', spacing: Alone, span: $DIR/attr-complex-fn.rs:21:1: 24:2 (#0), }, Ident { ident: "T", span: $DIR/attr-complex-fn.rs:21:1: 24:2 (#0), }, Punct { ch: '>', spacing: Alone, span: $DIR/attr-complex-fn.rs:21:1: 24:2 (#0), }, Ident { ident: "for", span: $DIR/attr-complex-fn.rs:21:1: 24:2 (#0), }, Ident { ident: "MyStruct", span: $DIR/attr-complex-fn.rs:21:1: 24:2 (#0), }, Punct { ch: '<', spacing: Alone, span: $DIR/attr-complex-fn.rs:21:1: 24:2 (#0), }, Group { delimiter: Brace, stream: TokenStream [ Ident { ident: "true", span: $DIR/attr-complex-fn.rs:21:1: 24:2 (#0), }, ], span: $DIR/attr-complex-fn.rs:21:1: 24:2 (#0), }, Punct { ch: '>', spacing: Alone, span: $DIR/attr-complex-fn.rs:21:1: 24:2 (#0), }, Group { delimiter: Brace, stream: TokenStream [ Punct { ch: '#', spacing: Joint, span: $DIR/attr-complex-fn.rs:21:1: 24:2 (#0), }, Punct { ch: '!', spacing: Alone, span: $DIR/attr-complex-fn.rs:21:1: 24:2 (#0), }, Group { delimiter: Bracket, stream: TokenStream [ Ident { ident: "rustc_dummy", span: $DIR/attr-complex-fn.rs:21:1: 24:2 (#0), }, ], span: $DIR/attr-complex-fn.rs:21:1: 24:2 (#0), }, ], span: $DIR/attr-complex-fn.rs:21:1: 24:2 (#0), }, ]