]> git.proxmox.com Git - rustc.git/blame - src/tools/rustfmt/tests/source/issue-2863.rs
Update upstream source from tag 'upstream/1.52.1+dfsg1'
[rustc.git] / src / tools / rustfmt / tests / source / issue-2863.rs
CommitLineData
f20569fa
XL
1// rustfmt-reorder_impl_items: true
2
3impl<T> IntoIterator for SafeVec<T> {
4 type F = impl Trait;
5 type IntoIter = self::IntoIter<T>;
6 type Item = T;
7 // comment on foo()
8 fn foo() {println!("hello, world");}
9 type Bar = u32;
10 fn foo1() {println!("hello, world");}
11 type FooBar = u32;
12 fn foo2() {println!("hello, world");}
13 fn foo3() {println!("hello, world");}
14 const SomeConst: i32 = 100;
15 fn foo4() {println!("hello, world");}
16 fn foo5() {println!("hello, world");}
17 // comment on FoooooBar
18 type FoooooBar = u32;
19 fn foo6() {println!("hello, world");}
20 fn foo7() {println!("hello, world");}
21 type BarFoo = u32;
22 type E = impl Trait;
23 const AnotherConst: i32 = 100;
24 fn foo8() {println!("hello, world");}
25}