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() {}