#![feature(coerce_unsized)] use std::ops::CoerceUnsized; pub struct Foo { field_with_unsized_type: T, } pub struct Bar { field_with_unsized_type: T, } impl CoerceUnsized> for Foo where T: CoerceUnsized {} //~ ERROR E0377 fn main() {}