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
228 B
Rust
Raw Normal View History

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