blob: b44505f8a4133bdc2571a72eab6ac8b0cf31c88e [file] [log] [blame]
// Test that parentheses form doesn't work with struct types appearing in argument types.
struct Bar<A> {
f: A
}
fn foo(b: Box<Bar()>) {
//~^ ERROR parenthesized type parameters may only be used with a `Fn` trait
//~| ERROR missing generics for struct `Bar`
}
fn main() { }