mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +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
|
@ -10,6 +10,7 @@ use crate::{fixture, FileRange, HlTag, TextRange};
|
|||
fn test_highlighting() {
|
||||
check_highlighting(
|
||||
r#"
|
||||
//- proc_macros: identity
|
||||
//- /main.rs crate:main deps:foo
|
||||
use inner::{self as inner_mod};
|
||||
mod inner {}
|
||||
|
@ -23,6 +24,7 @@ pub mod marker {
|
|||
pub trait Copy {}
|
||||
}
|
||||
|
||||
#[proc_macros::identity]
|
||||
pub mod ops {
|
||||
#[lang = "fn_once"]
|
||||
pub trait FnOnce<Args> {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue