Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide_completion/src/tests/attribute.rs')
-rw-r--r--crates/ide_completion/src/tests/attribute.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/crates/ide_completion/src/tests/attribute.rs b/crates/ide_completion/src/tests/attribute.rs
index c90d4966f3..c2bd26e2d8 100644
--- a/crates/ide_completion/src/tests/attribute.rs
+++ b/crates/ide_completion/src/tests/attribute.rs
@@ -283,7 +283,11 @@ fn attr_on_type_alias() {
#[test]
fn attr_on_struct() {
check(
- r#"#[$0] struct Foo;"#,
+ r#"
+//- minicore:derive
+#[$0]
+struct Foo;
+"#,
expect![[r#"
at allow(…)
at cfg(…)
@@ -303,6 +307,8 @@ fn attr_on_struct() {
kw self
kw super
kw crate
+ md core
+ at derive pub macro derive
"#]],
);
}