diff options
Diffstat (limited to '')
-rw-r--r-- | src/tools/rustfmt/tests/target/issue-3840/version-two_hard-tabs.rs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/target/issue-3840/version-two_hard-tabs.rs b/src/tools/rustfmt/tests/target/issue-3840/version-two_hard-tabs.rs new file mode 100644 index 000000000..084db3d14 --- /dev/null +++ b/src/tools/rustfmt/tests/target/issue-3840/version-two_hard-tabs.rs @@ -0,0 +1,26 @@ +// 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>; + } +} |