mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Add some more attribute ide tests
This commit is contained in:
parent
6f9de71402
commit
538ac599d2
8 changed files with 156 additions and 9 deletions
|
@ -1880,4 +1880,26 @@ fn main() { f$0() }
|
|||
"error: No identifier available to rename",
|
||||
)
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn attributed_item() {
|
||||
check(
|
||||
"function",
|
||||
r#"
|
||||
//- proc_macros: identity
|
||||
|
||||
#[proc_macros::identity]
|
||||
fn func$0() {
|
||||
func();
|
||||
}
|
||||
"#,
|
||||
r#"
|
||||
|
||||
#[proc_macros::identity]
|
||||
fn function() {
|
||||
function();
|
||||
}
|
||||
"#,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue