mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
12 lines
204 B
Rust
12 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() {}
|