diff options
| author | Nick Cameron <nrc@ncameron.org> | 2017-05-02 11:17:35 +1200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-02 11:17:35 +1200 |
| commit | 5071c41cf80e2e7818088fbc528d19a0fac47b43 (patch) | |
| tree | 25ee81961c92b954670638ff50b0e85caeec05ca /tests/source | |
| parent | 4ad17b1efbdea4216819a6a6782fd3b5b41c9f1f (diff) | |
| parent | 42dbe482e3c37ddab6a7138ae5372e1d4831293e (diff) | |
Merge pull request #1471 from regexident/type_punctuation_density
Made `type_punctuation_density` apply too all `+` in types
Diffstat (limited to 'tests/source')
| -rw-r--r-- | tests/source/type-punctuation.rs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/source/type-punctuation.rs b/tests/source/type-punctuation.rs index 29c2f5a4e3b..0980e4a3732 100644 --- a/tests/source/type-punctuation.rs +++ b/tests/source/type-punctuation.rs @@ -1,5 +1,32 @@ // rustfmt-type_punctuation_density: Compressed +struct Foo<T: Eq + Clone, U> + where U: Eq + Clone { + // body +} + +trait Foo<'a, T = usize> + where T: 'a + Eq + Clone +{ + type Bar: Eq + Clone; +} + +trait Foo: Eq + Clone { + // body +} + +impl<T> Foo<'a> for Bar + where for<'a> T: 'a + Eq + Clone +{ + // body +} + +fn foo<'a, 'b, 'c>() + where 'a: 'b + 'c +{ + // body +} + fn Foo<T = Foo, Output = Expr<'tcx> + Foo>() { let i = 6; } |
