Sign in
fuchsia
/
third_party
/
rust
/
1e5ec0a12c73efdd9a492fdc7ab661d90dc5bcf5
/
.
/
tests
/
ui
/
typeck
/
terr-sorts.rs
blob: c1e2f7daee5ec675abfb2c790b49a6acd52f1289 [
file
] [
log
] [
blame
]
struct
Foo
{
a
:
isize
,
b
:
isize
,
}
type
Bar
=
Box
<
Foo
>;
fn
want_foo
(
f
:
Foo
)
{}
fn
have_bar
(
b
:
Bar
)
{
want_foo
(
b
);
//~ ERROR mismatched types
//~| expected struct `Foo`
//~| found struct `Box<Foo>`
}
fn
main
()
{}