]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/source/issue-2863.rs
Add 'src/tools/rustfmt/' from commit '7872306edf2e11a69aaffb9434088fd66b46a863'
[rust.git] / src / tools / rustfmt / tests / source / issue-2863.rs
1 // rustfmt-reorder_impl_items: true
2
3 impl<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 }