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