struct Foo { a: isize, b: isize, } type Bar = Box; fn want_foo(f: Foo) {} fn have_bar(b: Bar) { want_foo(b); //~ ERROR mismatched types //~| expected struct `Foo` //~| found struct `Box` } fn main() {}