Add some more attribute ide tests
This commit is contained in:
parent
6f9de71402
commit
538ac599d2
8 changed files with 156 additions and 9 deletions
|
|
@ -1661,6 +1661,28 @@ id! {
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_hover_through_attr() {
|
||||
check(
|
||||
r#"
|
||||
//- proc_macros: identity
|
||||
#[proc_macros::identity]
|
||||
fn foo$0() {}
|
||||
"#,
|
||||
expect![[r#"
|
||||
*foo*
|
||||
|
||||
```rust
|
||||
test
|
||||
```
|
||||
|
||||
```rust
|
||||
fn foo()
|
||||
```
|
||||
"#]],
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_hover_through_expr_in_macro() {
|
||||
check(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue