blob: 41fcedc328df1968c4f90e3b970ae16820663d47 [file] [log] [blame]
#![feature(coerce_unsized)]
use std::ops::CoerceUnsized;
struct Foo<T: ?Sized> {
a: i32,
}
impl<T, U> CoerceUnsized<Foo<U>> for Foo<T> //~ ERROR E0374
where T: CoerceUnsized<U> {}
fn main() {}