Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
da873169707da0bdbc8a53d51bf1272ef6d365b8
/
.
/
src
/
test
/
ui
/
terr-sorts.rs
blob: f91185fd7c678c1cbf71b9d5cb4f062a6dc66d9e [
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 `std::boxed::Box<Foo>`
}
fn
main
()
{}