Sign in
fuchsia
/
third_party
/
rust
/
9ae1a664f7b947dadb9e97eea7703831d9cd5d31
/
.
/
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
()
{
}