]> git.lizzy.rs Git - rust.git/blob - tests/target/type_alias.rs
Update tests
[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,
51     // Type
52     T,
53 > = ();
54
55
56 pub type WithWhereClause<LONGPARAMETERNAME, T>
57 where
58     T: Clone,
59     LONGPARAMETERNAME: Clone + Eq + OtherTrait,
60 = Option<T>;
61
62 pub type Exactly100CharstoEqualWhereTest<T, U, PARAMET>
63 where
64     T: Clone + Ord + Eq + SomeOtherTrait,
65 = Option<T>;
66
67 pub type Exactly101CharstoEqualWhereTest<T, U, PARAMETE>
68 where
69     T: Clone + Ord + Eq + SomeOtherTrait,
70 = Option<T>;
71
72 type RegisterPlugin = unsafe fn(pt: *const c_char, plugin: *mut c_void, data: *mut CallbackData);
73
74 // #1683
75 pub type Between<Lhs, Rhs> = super::operators::Between<
76     Lhs,
77     super::operators::And<AsExpr<Rhs, Lhs>, AsExpr<Rhs, Lhs>>,
78 >;
79 pub type NotBetween<Lhs, Rhs> = super::operators::NotBetween<
80     Lhs,
81     super::operators::And<AsExpr<Rhs, Lhs>, AsExpr<Rhs, Lhs>>,
82 >;