]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0375.rs
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[rust.git] / src / test / ui / error-codes / E0375.rs
1 #![feature(coerce_unsized)]
2 use std::ops::CoerceUnsized;
3
4 struct Foo<T: ?Sized, U: ?Sized> {
5     a: i32,
6     b: T,
7     c: U,
8 }
9
10 impl<T, U> CoerceUnsized<Foo<U, T>> for Foo<T, U> {}
11 //~^ ERROR E0375
12
13 fn main() {}