#![feature(coerce_unsized)] use std::any::Any; use std::ops::CoerceUnsized; struct Foo { data: Box, } impl CoerceUnsized> for Foo {} //~^ ERROR the parameter type `T` may not live long enough fn main() {}