]> git.lizzy.rs Git - rust.git/blob - tests/source/type-punctuation.rs
Update tests
[rust.git] / tests / source / type-punctuation.rs
1 // rustfmt-type_punctuation_density: Compressed
2
3 struct Foo<T: Eq + Clone, U>
4     where U: Eq + Clone {
5     // body
6 }
7
8 trait Foo<'a, T = usize>
9     where T: 'a + Eq + Clone
10 {
11     type Bar: Eq + Clone;
12 }
13
14 trait Foo: Eq + Clone {
15     // body
16 }
17
18 impl<T> Foo<'a> for Bar
19     where for<'a> T: 'a + Eq + Clone
20 {
21     // body
22 }
23
24 fn foo<'a, 'b, 'c>()
25     where 'a: 'b + 'c
26 {
27     // body
28 }
29
30 fn Foo<T = Foo, Output = Expr<'tcx> + Foo>() {
31     let i = 6;
32 }