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.rs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/crates/ide_completion/src/tests/attribute.rs b/crates/ide_completion/src/tests/attribute.rs index 4ee95e8928..b851bf6a84 100644 --- a/crates/ide_completion/src/tests/attribute.rs +++ b/crates/ide_completion/src/tests/attribute.rs @@ -748,6 +748,27 @@ mod derive { } #[test] + fn derive_with_existing_derives() { + check_derive( + r#" +//- minicore: derive, copy, clone, ord, eq, default, fmt +#[derive(PartialEq, Eq, Or$0)] struct Test; +"#, + expect![[r#" + md core + de Default macro Default + de Clone, Copy + de PartialOrd, Ord + de Clone macro Clone + de PartialOrd + kw self:: + kw super:: + kw crate:: + "#]], + ); + } + + #[test] fn derive_flyimport() { check_derive( r#" |