summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/source/configs/where_single_line/true.rs
blob: 9de98283b5e5dcd6afb0805f6de98c02ddf80917 (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
// 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 {}