diff options
Diffstat (limited to '')
-rw-r--r-- | src/tools/rustfmt/tests/source/issue-3278/version_one.rs | 8 | ||||
-rw-r--r-- | src/tools/rustfmt/tests/source/issue-3278/version_two.rs | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/source/issue-3278/version_one.rs b/src/tools/rustfmt/tests/source/issue-3278/version_one.rs new file mode 100644 index 000000000..580679fba --- /dev/null +++ b/src/tools/rustfmt/tests/source/issue-3278/version_one.rs @@ -0,0 +1,8 @@ +// rustfmt-version: One + +pub fn parse_conditional<'a, I: 'a>( +) -> impl Parser<Input = I, Output = Expr, PartialState = ()> + 'a +where + I: Stream<Item = char>, +{ +} diff --git a/src/tools/rustfmt/tests/source/issue-3278/version_two.rs b/src/tools/rustfmt/tests/source/issue-3278/version_two.rs new file mode 100644 index 000000000..c17b1742d --- /dev/null +++ b/src/tools/rustfmt/tests/source/issue-3278/version_two.rs @@ -0,0 +1,8 @@ +// rustfmt-version: Two + +pub fn parse_conditional<'a, I: 'a>() +-> impl Parser<Input = I, Output = Expr, PartialState = ()> + 'a +where + I: Stream<Item = char>, +{ +} |