]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | // rustfmt-version: Two |
2 | ||
3 | impl< | |
4 | Target: FromEvent<A> + FromEvent<B>, | |
5 | A: Widget2<Ctx = C>, | |
6 | B: Widget2<Ctx = C>, | |
7 | C: for<'a> CtxFamily<'a>, | |
8 | > Widget2 for WidgetEventLifter<Target, A, B> | |
9 | { | |
10 | type Ctx = C; | |
11 | type Event = Vec<Target>; | |
12 | } | |
13 | ||
14 | mod foo { | |
15 | impl< | |
16 | Target: FromEvent<A> + FromEvent<B>, | |
17 | A: Widget2<Ctx = C>, | |
18 | B: Widget2<Ctx = C>, | |
19 | C: for<'a> CtxFamily<'a>, | |
20 | > Widget2 for WidgetEventLifter<Target, A, B> | |
21 | { | |
22 | type Ctx = C; | |
23 | type Event = Vec<Target>; | |
24 | } | |
25 | } |