1 // compile-flags: --crate-type=lib
5 fn boxed<'w>(self) -> Box<dyn WidgetDyn<E> + 'w>
10 pub trait WidgetDyn<E> {}
12 impl<T, E> WidgetDyn<E> for T where T: Widget<E> {}
14 impl<E> Widget<E> for dyn WidgetDyn<E> + '_ {
15 fn boxed<'w>(self) -> Box<dyn WidgetDyn<E> + 'w>
19 // Even though this is illegal to const evaluate, this should never
20 // trigger an ICE because it can never be called from actual code
21 // (due to the trivially false where-clause predicate).