1 #![feature(coerce_unsized)]
2 use std::ops::CoerceUnsized;
4 pub struct Foo<T: ?Sized> {
5 field_with_unsized_type: T,
8 pub struct Bar<T: ?Sized> {
9 field_with_unsized_type: T,
12 impl<T, U> CoerceUnsized<Bar<U>> for Foo<T> where T: CoerceUnsized<U> {} //~ ERROR E0377