]> git.lizzy.rs Git - rust.git/blob - tests/target/type_alias.rs
Handle attributes on modules (#968)
[rust.git] / tests / target / type_alias.rs
1
2 type PrivateTest<'a, I> = (Box<Parser<Input = I, Output = char> + 'a>,
3                            Box<Parser<Input = I, Output = char> + 'a>);
4
5 pub type PublicTest<'a, I, O> = Result<Vec<MyLongType>,
6                                        Box<Parser<Input = I, Output = char> + 'a>,
7                                        Box<Parser<Input = I, Output = char> + 'a>>;
8
9 pub type LongGenericListTest<'a,
10                              'b,
11                              'c,
12                              'd,
13                              LONGPARAMETERNAME,
14                              LONGPARAMETERNAME,
15                              LONGPARAMETERNAME,
16                              A,
17                              B,
18                              C> = Option<Vec<MyType>>;
19
20 pub type Exactly100CharsTest<'a, 'b, 'c, 'd, LONGPARAMETERNAME, LONGPARAMETERNAME, A, B> = Vec<i32>;
21
22 pub type Exactly101CharsTest<'a, 'b, 'c, 'd, LONGPARAMETERNAME, LONGPARAMETERNAME, A, B> =
23     Vec<Test>;
24
25 pub type Exactly100CharsToEqualTest<'a, 'b, 'c, 'd, LONGPARAMETERNAME, LONGPARAMETERNAME, A, B, C> =
26     Vec<i32>;
27
28 pub type GenericsFitButNotEqualTest<'a,
29                                     'b,
30                                     'c,
31                                     'd,
32                                     LONGPARAMETERNAME,
33                                     LONGPARAMETERNAME,
34                                     A1,
35                                     B,
36                                     C> = Vec<i32>;
37
38 pub type CommentTest<// Lifetime
39                      'a, // Type
40                      T> = ();
41
42
43 pub type WithWhereClause<LONGPARAMETERNAME, T>
44     where T: Clone,
45           LONGPARAMETERNAME: Clone + Eq + OtherTrait = Option<T>;
46
47 pub type Exactly100CharstoEqualWhereTest<T, U, PARAMET> where T: Clone + Ord + Eq + SomeOtherTrait =
48     Option<T>;
49
50 pub type Exactly101CharstoEqualWhereTest<T, U, PARAMETE>
51     where T: Clone + Ord + Eq + SomeOtherTrait = Option<T>;
52
53 type RegisterPlugin = unsafe fn(pt: *const c_char,
54                                 plugin: *mut c_void,
55                                 data: *mut CallbackData);