summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue-3840/version-one_hard-tabs.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/tests/target/issue-3840/version-one_hard-tabs.rs')
-rw-r--r--src/tools/rustfmt/tests/target/issue-3840/version-one_hard-tabs.rs25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/target/issue-3840/version-one_hard-tabs.rs b/src/tools/rustfmt/tests/target/issue-3840/version-one_hard-tabs.rs
new file mode 100644
index 000000000..4aa905ce9
--- /dev/null
+++ b/src/tools/rustfmt/tests/target/issue-3840/version-one_hard-tabs.rs
@@ -0,0 +1,25 @@
+// rustfmt-hard_tabs: true
+
+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>;
+ }
+}