Record attribute calls on assoc items in TraitData and ImplData

This commit is contained in:
Lukas Wirth 2022-01-08 10:45:12 +01:00
parent 6cf0cadfaa
commit 6746ba5839
5 changed files with 79 additions and 27 deletions

View file

@ -1514,4 +1514,25 @@ fn func$0() {
"#]],
)
}
#[test]
fn attr_assoc_item() {
check(
r#"
//- proc_macros: identity
trait Trait {
#[proc_macros::identity]
fn func() {
Self::func$0();
}
}
"#,
expect![[r#"
func Function FileId(0) 48..87 51..55
FileId(0) 74..78
"#]],
)
}
}