blob: f389169f954051729ed967a49aaac41b23dffeec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#![feature(coerce_unsized)]
use std::any::Any;
use std::ops::CoerceUnsized;
struct Foo<T: ?Sized> {
data: Box<T>,
}
impl<T> CoerceUnsized<Foo<dyn Any>> for Foo<T> {}
//~^ ERROR the parameter type `T` may not live long enough
fn main() {}
|