about summary refs log tree commit diff
path: root/src/tools/rustfmt/tests/source/issue-3840/version-two_soft-tabs.rs
blob: 9e283d3be0ae5afbade2c7a26706c1ca0e7937e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// rustfmt-style_edition: 2024

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>;
    }
}