2016-08-02 20:07:56 -05:00
|
|
|
// rustfmt-space_before_bound: true
|
|
|
|
|
|
|
|
trait Trait {}
|
2017-01-08 20:58:06 -06:00
|
|
|
trait Trait2 {}
|
2017-06-11 23:01:41 -05:00
|
|
|
fn f<'a, 'b : 'a, T : Trait, U>()
|
|
|
|
where
|
|
|
|
U : Trait2,
|
|
|
|
{
|
|
|
|
}
|
2017-01-08 20:58:06 -06:00
|
|
|
|
|
|
|
// should fit on the line
|
2017-06-11 23:01:41 -05:00
|
|
|
fn f2<'a, 'b : 'a, Ttttttttttttttttttttttttttttttttttttttttttttttt : Trait, U>()
|
|
|
|
where
|
|
|
|
U : Trait2,
|
|
|
|
{
|
|
|
|
}
|
2017-01-08 20:58:06 -06:00
|
|
|
// should be wrapped
|
2017-06-11 23:01:41 -05:00
|
|
|
fn f2<'a, 'b : 'a, Tttttttttttttttttttttttttttttttttttttttttttttttt : Trait, U>()
|
|
|
|
where
|
|
|
|
U : Trait2,
|
|
|
|
{
|
2017-01-08 20:58:06 -06:00
|
|
|
}
|