summaryrefslogtreecommitdiff
path: root/test/indent/rust/on-open-paren/in
blob: 137baf5a320ad73793bbb744670834c0fc84da91 (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
    fn foo<T>(x: T)
    where
        T: Debug
        %( )

    pub async fn foo<T>(x: T)
    where
        T: Debug
        %( )

    pub(in std::fmt) const unsafe extern "C" fn foo<T>(x: T)
    where
        T: Debug
        %( )

    fn foo<T>(x: T) where T: Debug %( )

    impl<T> X for T
    where
        T: Debug
        %( )

    impl<T> X for T where T: Debug %( )

    struct X<T>
    where
        T: Debug
        %( )

    pub(crate) struct X<T>
    where
        T: Debug
        %( )

    struct X<T> where T: Debug %( )

    enum X<T>
    where
        T: Debug
        %( )

    enum X<T> where T: Debug %( )

    union X<T>
    where
        T: Debug
        %( )

    union X<T> where T: Debug %( )

    if foo()
        && bar()
        %( )

    for x in group
        .iter()
        .sorted_by(|a, b| Ord::cmp(&a.0, &b.0))
        %( )