]> git.lizzy.rs Git - rust.git/blob - tests/target/type_alias.rs
Move Indent and Shape to shape.rs from lib.rs
[rust.git] / tests / target / type_alias.rs
1 // rustfmt-normalize_comments: true
2
3 type PrivateTest<'a, I> = (
4     Box<Parser<Input = I, Output = char> + 'a>,
5     Box<Parser<Input = I, Output = char> + 'a>,
6 );
7
8 pub type PublicTest<'a, I, O> = Result<
9     Vec<MyLongType>,
10     Box<Parser<Input = I, Output = char> + 'a>,
11     Box<Parser<Input = I, Output = char> + 'a>,
12 >;
13
14 pub type LongGenericListTest<
15     'a,
16     'b,
17     'c,
18     'd,
19     LONGPARAMETERNAME,
20     LONGPARAMETERNAME,
21     LONGPARAMETERNAME,
22     A,
23     B,
24     C,
25 > = Option<Vec<MyType>>;
26
27 pub type Exactly100CharsTest<'a, 'b, 'c, 'd, LONGPARAMETERNAME, LONGPARAMETERNAME, A, B> = Vec<i32>;
28
29 pub type Exactly101CharsTest<'a, 'b, 'c, 'd, LONGPARAMETERNAME, LONGPARAMETERNAME, A, B> = Vec<
30     Test,
31 >;
32
33 pub type Exactly100CharsToEqualTest<'a, 'b, 'c, 'd, LONGPARAMETERNAME, LONGPARAMETERNAME, A, B, C> =
34     Vec<i32>;
35
36 pub type GenericsFitButNotEqualTest<
37     'a,
38     'b,
39     'c,
40     'd,
41     LONGPARAMETERNAME,
42     LONGPARAMETERNAME,
43     A1,
44     B,
45     C,
46 > = Vec<i32>;
47
48 pub type CommentTest<
49     // Lifetime
50     'a, // Type
51     T,
52 > = ();
53
54
55 pub type WithWhereClause<LONGPARAMETERNAME, T>
56 where
57     T: Clone,
58     LONGPARAMETERNAME: Clone + Eq + OtherTrait,
59 = Option<T>;
60
61 pub type Exactly100CharstoEqualWhereTest<T, U, PARAMET>
62 where
63     T: Clone + Ord + Eq + SomeOtherTrait,
64 = Option<T>;
65
66 pub type Exactly101CharstoEqualWhereTest<T, U, PARAMETE>
67 where
68     T: Clone + Ord + Eq + SomeOtherTrait,
69 = Option<T>;
70
71 type RegisterPlugin = unsafe fn(pt: *const c_char, plugin: *mut c_void, data: *mut CallbackData);
72
73 // #1683
74 pub type Between<Lhs, Rhs> = super::operators::Between<
75     Lhs,
76     super::operators::And<AsExpr<Rhs, Lhs>, AsExpr<Rhs, Lhs>>,
77 >;
78 pub type NotBetween<Lhs, Rhs> = super::operators::NotBetween<
79     Lhs,
80     super::operators::And<AsExpr<Rhs, Lhs>, AsExpr<Rhs, Lhs>>,
81 >;