Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
ui
/
terr-in-field.rs
blob: aa801fd0a6c64b15b86dccdefbd057cf3ee98865 [
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 struct `Foo`, found struct `Bar`
}
fn
main
()
{}