rust/tests/ui/error-codes/E0375.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
212 B
Rust
Raw Normal View History

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