]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0375.rs
Suggest `if let`/`let_else` for refutable pat in `let`
[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() {}