]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/statements.rs
Auto merge of #82624 - ojeda:rwlock-example-deadlock, r=JohnTitor
[rust.git] / src / tools / rustfmt / tests / target / statements.rs
1 // FIXME(calebcartwright) - Hopefully one day we can
2 // elide these redundant semis like we do in other contexts.
3 fn redundant_item_semis() {
4     impl Foo {
5         fn get(&self) -> usize {
6             5
7         }
8     };
9
10     impl Bar {
11         fn get(&self) -> usize {
12             5
13         }
14     } /*asdfsf*/
15     ;
16
17     impl Baz {
18         fn get(&self) -> usize {
19             5
20         }
21     } /*asdfsf*/
22
23     // why would someone do this
24     ;
25
26     impl Qux {
27         fn get(&self) -> usize {
28             5
29         }
30     }
31
32     // why
33     ;
34
35     impl Lorem {
36         fn get(&self) -> usize {
37             5
38         }
39     }
40     // oh why
41     ;
42 }