Sign in
fuchsia
/
third_party
/
rust
/
d782f09ae0b88a73a69e2fa3169222cdbc47d4ec
/
.
/
src
/
test
/
ui
/
associated-types
/
associated-types-unsized.rs
blob: a9bc24e44d165d75e238ca2e35af421f162d49f4 [
file
] [
log
] [
blame
]
trait
Get
{
type
Value
:
?
Sized
;
fn
get
(&
self
)
->
<
Self
as
Get
>::
Value
;
}
fn
foo
<
T
:
Get
>(
t
:
T
)
{
let
x
=
t
.
get
();
//~ ERROR the size for values of type
}
fn
main
()
{
}