Sign in
fuchsia
/
third_party
/
rust
/
1e5ec0a12c73efdd9a492fdc7ab661d90dc5bcf5
/
.
/
tests
/
ui
/
associated-types
/
associated-types-unsized.rs
blob: 5cdb4a6133c6bf918fbfac6ad8ac7e43d3162d52 [
file
] [
log
] [
blame
]
//@ run-rustfix
#![
allow
(
dead_code
,
unused_variables
)]
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
()
{
}