2017-11-05 16:53:17 -06:00
|
|
|
// 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
|
|
|
|
}
|
2018-05-31 05:34:06 -05:00
|
|
|
|
|
|
|
unsafe impl Sync for Foo where (): Send {}
|