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