summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/source/issue-3840/version-two_hard-tabs.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/tests/source/issue-3840/version-two_hard-tabs.rs')
-rw-r--r--src/tools/rustfmt/tests/source/issue-3840/version-two_hard-tabs.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/source/issue-3840/version-two_hard-tabs.rs b/src/tools/rustfmt/tests/source/issue-3840/version-two_hard-tabs.rs
new file mode 100644
index 000000000..7b505fda8
--- /dev/null
+++ b/src/tools/rustfmt/tests/source/issue-3840/version-two_hard-tabs.rs
@@ -0,0 +1,16 @@
+// rustfmt-hard_tabs: true
+// rustfmt-version: Two
+
+impl<Target: FromEvent<A> + FromEvent<B>, A: Widget2<Ctx = C>, B: Widget2<Ctx = C>, C: for<'a> CtxFamily<'a>> Widget2 for WidgetEventLifter<Target, A, B>
+{
+ type Ctx = C;
+ type Event = Vec<Target>;
+}
+
+mod foo {
+ impl<Target: FromEvent<A> + FromEvent<B>, A: Widget2<Ctx = C>, B: Widget2<Ctx = C>, C: for<'a> CtxFamily<'a>> Widget2 for WidgetEventLifter<Target, A, B>
+ {
+ type Ctx = C;
+ type Event = Vec<Target>;
+ }
+}