Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
return
/
return-type.rs
blob: 9f951ee0dd188e49f3e23d03c2dd37f48862b531 [
file
] [
log
] [
blame
]
struct
S
<
T
>
{
t
:
T
,
}
fn
foo
<
T
>(
x
:
T
)
->
S
<
T
>
{
S
{
t
:
x
}
}
fn
bar
()
{
foo
(
4
as
usize
)
//~^ ERROR mismatched types
}
fn
main
()
{}