rust/tests/ui/error-codes/E0375.rs
2023-01-11 09:32:08 +00:00

14 lines
212 B
Rust

#![feature(coerce_unsized)]
use std::ops::CoerceUnsized;
struct Foo<T: ?Sized, U: ?Sized> {
a: i32,
b: T,
c: U,
}
impl<T, U> CoerceUnsized<Foo<U, T>> for Foo<T, U> {}
//~^ ERROR E0375
fn main() {}