2021-10-09 10:23:35 -05:00
|
|
|
trait T0 {}
|
|
|
|
trait T1: T0 {}
|
2021-10-07 11:00:15 -05:00
|
|
|
|
2021-10-09 10:23:35 -05:00
|
|
|
trait T2 {}
|
2021-10-07 11:00:15 -05:00
|
|
|
|
2021-10-09 10:23:35 -05:00
|
|
|
impl<'a> T0 for &'a (dyn T2 + 'static) {}
|
|
|
|
|
|
|
|
impl T1 for &dyn T2 {}
|
|
|
|
//~^ ERROR mismatched types
|
2021-10-07 11:00:15 -05:00
|
|
|
|
|
|
|
fn main() {}
|