blob: 1b8f76f40cbe6e8e64003e63eb14f7c585e94158 [file] [log] [blame]
//@ dont-require-annotations: NOTE
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
//~| NOTE expected `Foo`, found `Bar`
}
fn main() {}