Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide/src/syntax_highlighting/tests.rs')
| -rw-r--r-- | crates/ide/src/syntax_highlighting/tests.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/crates/ide/src/syntax_highlighting/tests.rs b/crates/ide/src/syntax_highlighting/tests.rs index b1094872ff..ab69578ed9 100644 --- a/crates/ide/src/syntax_highlighting/tests.rs +++ b/crates/ide/src/syntax_highlighting/tests.rs @@ -39,10 +39,18 @@ fn attributes() { // This is another normal comment #[derive(Copy, Unresolved)] // The reason for these being here is to test AttrIds +#[default] enum Foo { #[default] - Bar + Bar { + #[default] + field: i32 + } } + +#[derive(Default)] +#[default] +struct Bar(#[default] i32); "#, expect_file!["./test_data/highlight_attributes.html"], false, |