diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-03-17 10:16:34 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-03-17 10:16:34 +0000 |
commit | 3ec28dd9b80dd1699f1b05fa26ab5f0551b607b6 (patch) | |
tree | e8253f38bebf21dd050484d15859b0eb893e23e0 /crates/ra_syntax/tests/data/parser/inline/ok/0125_struct_literal_field_with_attr.rs | |
parent | 7d3f48cdaf20d718e711f999573adf3303e9396a (diff) | |
parent | a1d84f5fb033113a0a0b9a0b4d9951a6a0bf04b8 (diff) |
Merge #984
984: Allow attribute on struct literal field r=matklad a=pcpthm
Cherrypicked from #980
Co-authored-by: pcpthm <[email protected]>
Diffstat (limited to 'crates/ra_syntax/tests/data/parser/inline/ok/0125_struct_literal_field_with_attr.rs')
-rw-r--r-- | crates/ra_syntax/tests/data/parser/inline/ok/0125_struct_literal_field_with_attr.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/ra_syntax/tests/data/parser/inline/ok/0125_struct_literal_field_with_attr.rs b/crates/ra_syntax/tests/data/parser/inline/ok/0125_struct_literal_field_with_attr.rs new file mode 100644 index 000000000..a6c7760c7 --- /dev/null +++ b/crates/ra_syntax/tests/data/parser/inline/ok/0125_struct_literal_field_with_attr.rs | |||
@@ -0,0 +1,3 @@ | |||
1 | fn main() { | ||
2 | S { #[cfg(test)] field: 1 } | ||
3 | } | ||