]> git.proxmox.com Git - rustc.git/blame - src/tools/rustfmt/tests/target/statements.rs
New upstream version 1.52.1+dfsg1
[rustc.git] / src / tools / rustfmt / tests / target / statements.rs
CommitLineData
f20569fa
XL
1// FIXME(calebcartwright) - Hopefully one day we can
2// elide these redundant semis like we do in other contexts.
3fn 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}