]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0377.rs
Auto merge of #106143 - matthiaskrgr:rollup-3kpy1dc, r=matthiaskrgr
[rust.git] / src / test / ui / error-codes / E0377.rs
1 #![feature(coerce_unsized)]
2 use std::ops::CoerceUnsized;
3
4 pub struct Foo<T: ?Sized> {
5     field_with_unsized_type: T,
6 }
7
8 pub struct Bar<T: ?Sized> {
9     field_with_unsized_type: T,
10 }
11
12 impl<T, U> CoerceUnsized<Bar<U>> for Foo<T> where T: CoerceUnsized<U> {} //~ ERROR E0377
13
14 fn main() {}