]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0374.rs
Merge commit 'cb7915b00c235e9b5861564f3be78dba330980ee' into clippyup
[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() {}