blob: 388c13d28ccf9698c862fb5964d7cd8273481a37 [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 type `Foo`
//~| found type `Bar`
//~| expected struct `Foo`, found struct `Bar`
}
fn main() {}