]> git.lizzy.rs Git - rust.git/blob - tests/source/where-clause.rs
Merge pull request #664 from marcusklaas/fix-reformat-failurez
[rust.git] / tests / source / where-clause.rs
1 pub trait Test {
2     fn very_long_method_name<F>(self, f: F) -> MyVeryLongReturnType where F: FnMut(Self::Item) -> bool;
3     fn exactly_100_chars1<F>(self, f: F) -> MyVeryLongReturnType where F: FnMut(Self::Item) -> bool;
4 }
5
6 fn very_long_function_name<F>(very_long_argument: F) -> MyVeryLongReturnType where F: FnMut(Self::Item) -> bool { }
7
8 struct VeryLongTupleStructName<A, B, C, D, E>(LongLongTypename, LongLongTypename, i32, i32) where A: LongTrait;
9
10 struct Exactly100CharsToSemicolon<A, B, C, D, E>
11     (LongLongTypename, i32, i32)
12     where A: LongTrait1234;
13
14 struct AlwaysOnNextLine<LongLongTypename, LongTypename, A, B, C, D, E, F> where A: LongTrait {
15     x: i32
16 }