]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | // rustfmt-type_punctuation_density: Compressed |
2 | // Type punctuation density | |
3 | ||
4 | fn lorem<Ipsum:Dolor+Sit=Amet>() { | |
5 | // body | |
6 | } | |
7 | ||
8 | struct Foo<T: Eq + Clone, U> | |
9 | where U: Eq + Clone { | |
10 | // body | |
11 | } | |
12 | ||
13 | trait Foo<'a, T = usize> | |
14 | where T: 'a + Eq + Clone | |
15 | { | |
16 | type Bar: Eq + Clone; | |
17 | } | |
18 | ||
19 | trait Foo: Eq + Clone { | |
20 | // body | |
21 | } | |
22 | ||
23 | impl<T> Foo<'a> for Bar | |
24 | where for<'a> T: 'a + Eq + Clone | |
25 | { | |
26 | // body | |
27 | } | |
28 | ||
29 | fn foo<'a, 'b, 'c>() | |
30 | where 'a: 'b + 'c | |
31 | { | |
32 | // body | |
33 | } | |
34 | ||
35 | fn Foo<T = Foo, Output = Expr<'tcx> + Foo>() { | |
36 | let i = 6; | |
37 | } |