Sign in
fuchsia
/
third_party
/
rust
/
346aec9b02f3c74f3fce97fd6bda24709d220e49
/
.
/
src
/
test
/
ui
/
unsized
/
unsized-trait-impl-self-type.rs
blob: df571a83382c035bc91a907911d56e8d58be3d86 [
file
] [
log
] [
blame
]
// Test sized-ness checking in substitution in impls.
// impl - struct
trait
T3
<
Z
:
?
Sized
>
{
fn
foo
(&
self
,
z
:
&
Z
);
}
struct
S5
<
Y
>(
Y
);
impl
<
X
:
?
Sized
>
T3
<
X
>
for
S5
<
X
>
{
//~^ ERROR the size for values of type
}
fn
main
()
{
}