summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/configs/where_single_line/true.rs
blob: 7f816459e3c6e1e7d0779649709a232808de72f2 (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
// rustfmt-where_single_line: true
// Where style

fn lorem_two_items<Ipsum, Dolor, Sit, Amet>() -> T
where
    Ipsum: Eq,
    Lorem: Eq,
{
    // body
}

fn lorem_multi_line<Ipsum, Dolor, Sit, Amet>(
    a: Aaaaaaaaaaaaaaa,
    b: Bbbbbbbbbbbbbbbb,
    c: Ccccccccccccccccc,
    d: Ddddddddddddddddddddddddd,
    e: Eeeeeeeeeeeeeeeeeee,
) -> T
where
    Ipsum: Eq,
{
    // body
}

fn lorem<Ipsum, Dolor, Sit, Amet>() -> T
where Ipsum: Eq {
    // body
}

unsafe impl Sync for Foo where (): Send {}