]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0376.rs
Rollup merge of #97915 - tbu-:pr_os_string_fmt_write, r=joshtriplett
[rust.git] / src / test / ui / error-codes / E0376.rs
1 #![feature(coerce_unsized)]
2 use std::ops::CoerceUnsized;
3
4 struct Foo<T: ?Sized> {
5     a: T,
6 }
7
8 impl<T, U> CoerceUnsized<U> for Foo<T> {} //~ ERROR E0376
9
10 fn main() {}