]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0375.rs
Rollup merge of #59056 - scottmcm:even-fewer-lifetimes, r=sfackler
[rust.git] / src / test / ui / error-codes / E0375.rs
1 // ignore-tidy-linelength
2
3 #![feature(coerce_unsized)]
4 use std::ops::CoerceUnsized;
5
6 struct Foo<T: ?Sized, U: ?Sized> {
7     a: i32,
8     b: T,
9     c: U,
10 }
11
12 impl<T, U> CoerceUnsized<Foo<U, T>> for Foo<T, U> {}
13 //~^ ERROR E0375
14
15 fn main() {}