type N = u32; struct Foo; fn test() -> Foo { //~ ERROR type provided when Foo } fn main() {}