struct S { t: T, } fn foo(x: T) -> S { S { t: x } } fn bar() { foo(4 as usize) //~^ ERROR mismatched types } fn main() {}