1 struct Foo {
2     a: isize,
3     b: isize,
4 }
5 
6 struct Bar {
7     a: isize,
8     b: usize,
9 }
10 
want_foo(f: Foo)11 fn want_foo(f: Foo) {}
have_bar(b: Bar)12 fn have_bar(b: Bar) {
13     want_foo(b); //~  ERROR mismatched types
14                  //~| expected struct `Foo`, found struct `Bar`
15 }
16 
main()17 fn main() {}
18