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