rust/tests/target/space-before-bound.rs

23 lines
391 B
Rust
Raw Normal View History

// rustfmt-space_before_bound: true
trait Trait {}
trait Trait2 {}
2017-06-12 06:01:41 +02:00
fn f<'a, 'b : 'a, T : Trait, U>()
where
U : Trait2,
{
}
// should fit on the line
2017-06-12 06:01:41 +02:00
fn f2<'a, 'b : 'a, Ttttttttttttttttttttttttttttttttttttttttttttttt : Trait, U>()
where
U : Trait2,
{
}
// should be wrapped
2017-06-12 06:01:41 +02:00
fn f2<'a, 'b : 'a, Tttttttttttttttttttttttttttttttttttttttttttttttt : Trait, U>()
where
U : Trait2,
{
}