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