blob: 5387dcb218cb92e5cf90af8b21a968b75fb89676 [file] [log] [blame]
// Test that parentheses form doesn't work with struct types appearing in local variables.
struct Bar<A> {
f: A
}
fn bar() {
let x: Box<Bar()> = panic!();
//~^ ERROR parenthesized parameters may only be used with a trait
}
fn main() { }