blob: 1af7f55674c6aa9c388533563b60ddac19084443 [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 wrong number of type arguments: expected 1, found 0
}
fn main() { }