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