]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/issue-3194.rs
Auto merge of #85481 - lcnr:const-equate, r=matthewjasper
[rust.git] / src / tools / rustfmt / tests / target / issue-3194.rs
1 mod m {
2     struct S
3     where
4         A: B;
5 }
6
7 mod n {
8     struct Foo
9     where
10         A: B,
11     {
12         foo: usize,
13     }
14 }
15
16 mod o {
17     enum Bar
18     where
19         A: B,
20     {
21         Bar,
22     }
23 }
24
25 mod with_comments {
26     mod m {
27         struct S
28         /* before where */
29         where
30             A: B; /* after where */
31     }
32
33     mod n {
34         struct Foo
35         /* before where */
36         where
37             A: B, /* after where */
38         {
39             foo: usize,
40         }
41     }
42
43     mod o {
44         enum Bar
45         /* before where */
46         where
47             A: B, /* after where */
48         {
49             Bar,
50         }
51     }
52 }