]> git.proxmox.com Git - rustc.git/blame - src/tools/rustfmt/tests/source/configs/type_punctuation_density/wide.rs
Update upstream source from tag 'upstream/1.52.1+dfsg1'
[rustc.git] / src / tools / rustfmt / tests / source / configs / type_punctuation_density / wide.rs
CommitLineData
f20569fa
XL
1// rustfmt-type_punctuation_density: Wide
2// Type punctuation density
3
4fn lorem<Ipsum:Dolor+Sit=Amet>() {
5 // body
6}
7
8struct Foo<T: Eq + Clone, U>
9where U: Eq + Clone {
10 // body
11}
12
13trait Foo<'a, T = usize>
14where T: 'a + Eq + Clone
15{
16 type Bar: Eq + Clone;
17}
18
19trait Foo: Eq + Clone {
20 // body
21}
22
23impl<T> Foo<'a> for Bar
24where for<'a> T: 'a + Eq + Clone
25{
26 // body
27}
28
29fn foo<'a, 'b, 'c>()
30where 'a: 'b + 'c
31{
32 // body
33}
34
35fn Foo<T = Foo, Output = Expr<'tcx> + Foo>() {
36 let i = 6;
37}