rust/src/test/ui/error-codes/E0374.rs
2018-12-25 21:08:33 -07:00

11 lines
204 B
Rust

#![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() {}