2016-08-06 19:44:49 +00:00
|
|
|
#![feature(coerce_unsized)]
|
|
|
|
use std::ops::CoerceUnsized;
|
|
|
|
|
|
|
|
struct Foo<T: ?Sized, U: ?Sized> {
|
|
|
|
a: i32,
|
|
|
|
b: T,
|
|
|
|
c: U,
|
|
|
|
}
|
|
|
|
|
2016-08-15 17:37:03 +00:00
|
|
|
impl<T, U> CoerceUnsized<Foo<U, T>> for Foo<T, U> {}
|
|
|
|
//~^ ERROR E0375
|
2016-08-06 19:44:49 +00:00
|
|
|
|
|
|
|
fn main() {}
|