Sign in
fuchsia
/
third_party
/
rust
/
03534ac8b70de1134ce7e91b172cd629048a6c8b
/
.
/
tests
/
ui
/
typeck
/
terr-in-field.rs
blob: cfe350ef86db2a3343260ef5a1a4a3a230aa8461 [
file
] [
log
] [
blame
]
struct
Foo
{
a
:
isize
,
b
:
isize
,
}
struct
Bar
{
a
:
isize
,
b
:
usize
,
}
fn
want_foo
(
f
:
Foo
)
{}
fn
have_bar
(
b
:
Bar
)
{
want_foo
(
b
);
//~ ERROR mismatched types
//~| expected `Foo`, found `Bar`
}
fn
main
()
{}