mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Simplify
This commit is contained in:
parent
1bbef5af85
commit
94e59c9c56
3 changed files with 37 additions and 27 deletions
|
@ -735,6 +735,26 @@ mod derive {
|
|||
)
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn derive_no_attrs() {
|
||||
check_derive(
|
||||
r#"
|
||||
//- proc_macros: identity
|
||||
//- minicore: derive
|
||||
#[derive($0)] struct Test;
|
||||
"#,
|
||||
expect![[r#""#]],
|
||||
);
|
||||
check_derive(
|
||||
r#"
|
||||
//- proc_macros: identity
|
||||
//- minicore: derive
|
||||
#[derive(i$0)] struct Test;
|
||||
"#,
|
||||
expect![[r#""#]],
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn derive_flyimport() {
|
||||
check_derive(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue