Sign in
fuchsia
/
third_party
/
rust
/
41601a8c95240cada94c13466a1fea02e5fe87ed
/
.
/
src
/
test
/
ui
/
error-codes
/
E0374.rs
blob: 41fcedc328df1968c4f90e3b970ae16820663d47 [
file
] [
log
] [
blame
]
#![
feature
(
coerce_unsized
)]
use
std
::
ops
::
CoerceUnsized
;
struct
Foo
<
T
:
?
Sized
>
{
a
:
i32
,
}
impl
<
T
,
U
>
CoerceUnsized
<
Foo
<
U
>>
for
Foo
<
T
>
//~ ERROR E0374
where T
:
CoerceUnsized
<
U
>
{}
fn
main
()
{}