rust/tests/target/type-punctuation.rs

37 lines
423 B
Rust
Raw Normal View History

2016-01-12 21:51:32 +01:00
// rustfmt-type_punctuation_density: Compressed
struct Foo<T: Eq+Clone, U>
2017-06-12 06:01:41 +02:00
where
U: Eq+Clone, {
// body
}
trait Foo<'a, T=usize>
2017-06-12 06:01:41 +02:00
where
T: 'a+Eq+Clone,
{
type Bar: Eq+Clone;
}
trait Foo: Eq+Clone {
// body
}
impl<T> Foo<'a> for Bar
2017-06-12 06:01:41 +02:00
where
for<'a> T: 'a+Eq+Clone,
{
// body
}
fn foo<'a, 'b, 'c>()
2017-06-12 06:01:41 +02:00
where
'a: 'b+'c,
{
// body
}
2016-01-12 21:51:32 +01:00
fn Foo<T=Foo, Output=Expr<'tcx>+Foo>() {
let i = 6;
}