diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:02:58 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:02:58 +0000 |
commit | 698f8c2f01ea549d77d7dc3338a12e04c11057b9 (patch) | |
tree | 173a775858bd501c378080a10dca74132f05bc50 /src/tools/rustfmt/tests/target/issue-3840 | |
parent | Initial commit. (diff) | |
download | rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.tar.xz rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.zip |
Adding upstream version 1.64.0+dfsg1.upstream/1.64.0+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/tools/rustfmt/tests/target/issue-3840')
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>; + } +} |