]> git.lizzy.rs Git - rust.git/blob - tests/target/big-impl-visual.rs
Tidy up and pass tests
[rust.git] / tests / target / big-impl-visual.rs
1 // rustfmt-indent_style: Visual
2
3 // #1357
4 impl<'a, Select, From, Distinct, Where, Order, Limit, Offset, Groupby, DB> InternalBoxedDsl<'a, DB>
5     for SelectStatement<Select, From, Distinct, Where, Order, Limit, Offset, GroupBy>
6     where DB: Backend,
7           Select: QueryFragment<DB> + SelectableExpression<From> + 'a,
8           Distinct: QueryFragment<DB> + 'a,
9           Where: Into<Option<Box<QueryFragment<DB> + 'a>>>,
10           Order: QueryFragment<DB> + 'a,
11           Limit: QueryFragment<DB> + 'a,
12           Offset: QueryFragment<DB> + 'a
13 {
14     type Output = BoxedSelectStatement<'a, Select::SqlTypeForSelect, From, DB>;
15
16     fn internal_into_boxed(self) -> Self::Output {
17         BoxedSelectStatement::new(Box::new(self.select),
18                                   self.from,
19                                   Box::new(self.distinct),
20                                   self.where_clause.into(),
21                                   Box::new(self.order),
22                                   Box::new(self.limit),
23                                   Box::new(self.offset))
24     }
25 }
26
27 // #1369
28 impl<ExcessivelyLongGenericName,
29      ExcessivelyLongGenericName,
30      AnotherExcessivelyLongGenericName> Foo for Bar
31 {
32     fn foo() {}
33 }
34 impl Foo<ExcessivelyLongGenericName, ExcessivelyLongGenericName, AnotherExcessivelyLongGenericName>
35     for Bar
36 {
37     fn foo() {}
38 }
39 impl<ExcessivelyLongGenericName,
40      ExcessivelyLongGenericName,
41      AnotherExcessivelyLongGenericName> Foo<ExcessivelyLongGenericName,
42                                             ExcessivelyLongGenericName,
43                                             AnotherExcessivelyLongGenericName> for Bar
44 {
45     fn foo() {}
46 }
47 impl<ExcessivelyLongGenericName,
48      ExcessivelyLongGenericName,
49      AnotherExcessivelyLongGenericName> Foo
50     for Bar<ExcessivelyLongGenericName,
51             ExcessivelyLongGenericName,
52             AnotherExcessivelyLongGenericName>
53 {
54     fn foo() {}
55 }
56 impl Foo<ExcessivelyLongGenericName, ExcessivelyLongGenericName, AnotherExcessivelyLongGenericName>
57     for Bar<ExcessivelyLongGenericName,
58             ExcessivelyLongGenericName,
59             AnotherExcessivelyLongGenericName>
60 {
61     fn foo() {}
62 }
63 impl<ExcessivelyLongGenericName,
64      ExcessivelyLongGenericName,
65      AnotherExcessivelyLongGenericName> Foo<ExcessivelyLongGenericName,
66                                             ExcessivelyLongGenericName,
67                                             AnotherExcessivelyLongGenericName>
68     for Bar<ExcessivelyLongGenericName,
69             ExcessivelyLongGenericName,
70             AnotherExcessivelyLongGenericName>
71 {
72     fn foo() {}
73 }