summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/type_alias.rs
blob: 862f9ecbeec6178d1c2c0606ba426ebe7c4bce8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
// rustfmt-normalize_comments: true

type PrivateTest<'a, I> = (
    Box<Parser<Input = I, Output = char> + 'a>,
    Box<Parser<Input = I, Output = char> + 'a>,
);

pub type PublicTest<'a, I, O> = Result<
    Vec<MyLongType>,
    Box<Parser<Input = I, Output = char> + 'a>,
    Box<Parser<Input = I, Output = char> + 'a>,
>;

pub type LongGenericListTest<
    'a,
    'b,
    'c,
    'd,
    LONGPARAMETERNAME,
    LONGPARAMETERNAME,
    LONGPARAMETERNAME,
    A,
    B,
    C,
> = Option<Vec<MyType>>;

pub type Exactly100CharsTest<'a, 'b, 'c, 'd, LONGPARAMETERNAME, LONGPARAMETERNAME, A, B> = Vec<i32>;

pub type Exactly101CharsTest<'a, 'b, 'c, 'd, LONGPARAMETERNAME, LONGPARAMETERNAME, A, B> =
    Vec<Test>;

pub type Exactly100CharsToEqualTest<'a, 'b, 'c, 'd, LONGPARAMETERNAME, LONGPARAMETERNAME, A, B, C> =
    Vec<i32>;

pub type GenericsFitButNotEqualTest<
    'a,
    'b,
    'c,
    'd,
    LONGPARAMETERNAME,
    LONGPARAMETERNAME,
    A1,
    B,
    C,
> = Vec<i32>;

pub type CommentTest<
    // Lifetime
    'a,
    // Type
    T,
> = ();

pub type WithWhereClause<LONGPARAMETERNAME, T>
where
    T: Clone,
    LONGPARAMETERNAME: Clone + Eq + OtherTrait,
= Option<T>;

pub type Exactly100CharstoEqualWhereTest<T, U, PARAMET>
where
    T: Clone + Ord + Eq + SomeOtherTrait,
= Option<T>;

pub type Exactly101CharstoEqualWhereTest<T, U, PARAMETE>
where
    T: Clone + Ord + Eq + SomeOtherTrait,
= Option<T>;

type RegisterPlugin = unsafe fn(pt: *const c_char, plugin: *mut c_void, data: *mut CallbackData);

// #1683
pub type Between<Lhs, Rhs> =
    super::operators::Between<Lhs, super::operators::And<AsExpr<Rhs, Lhs>, AsExpr<Rhs, Lhs>>>;
pub type NotBetween<Lhs, Rhs> =
    super::operators::NotBetween<Lhs, super::operators::And<AsExpr<Rhs, Lhs>, AsExpr<Rhs, Lhs>>>;