Sign in
fuchsia
/
third_party
/
rust
/
4ecd94e1215882efde5f003c0042bd72a5f8acb2
/
.
/
src
/
test
/
ui
/
terr-sorts.rs
blob: 4bec5614e499ceb5e493eae80b0ce63c19f0ca1c [
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 type `Foo`
//~| found type `std::boxed::Box<Foo>`
}
fn
main
()
{}