mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 19:53:46 +00:00
22 lines
486 B
Rust
22 lines
486 B
Rust
// rustfmt-where_layout: Horizontal
|
|
// rustfmt-error_on_line_overflow: false
|
|
// Where layout
|
|
|
|
fn lorem<Ipsum, Dolor>(ipsum: Ipsum, dolor: Dolor)
|
|
where
|
|
Ipsum: IpsumDolorSitAmet,
|
|
Dolor: DolorSitAmetConsectetur,
|
|
{
|
|
// body
|
|
}
|
|
|
|
fn lorem<Ipsum, Dolor, Sit, Amet>(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet)
|
|
where
|
|
Ipsum: IpsumDolorSitAmet,
|
|
Dolor: DolorSitAmetConsectetur,
|
|
Sit: SitAmetConsecteturAdipiscing,
|
|
Amet: AmetConsecteturAdipiscingElit,
|
|
{
|
|
// body
|
|
}
|