]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/source/statements.rs
Rollup merge of #107166 - petrochenkov:nooptable, r=oli-obk
[rust.git] / src / tools / rustfmt / tests / source / 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     
27         impl Qux {
28         fn get(&self) -> usize {
29             5
30         }
31     } 
32     
33     // why
34     ;
35     
36             impl Lorem {
37         fn get(&self) -> usize {
38             5
39         }
40     } 
41     // oh why
42     ;
43 }