]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/issue-3759.rs
Merge commit 'd822110d3b5625b9dc80ccc442e06fc3cc851d76' into clippyup
[rust.git] / src / tools / rustfmt / tests / target / issue-3759.rs
1 fn main() {
2     let Test {
3         #[cfg(feature = "test")]
4         x,
5     } = Test {
6         #[cfg(feature = "test")]
7         x: 1,
8     };
9
10     let Test {
11         #[cfg(feature = "test")]
12         // comment
13         x,
14     } = Test {
15         #[cfg(feature = "test")]
16         x: 1,
17     };
18
19     let Test {
20         // comment
21         #[cfg(feature = "test")]
22         x,
23     } = Test {
24         #[cfg(feature = "test")]
25         x: 1,
26     };
27 }