// Test that parentheses form parses in expression paths. struct Bar { f: A, r: R } impl Bar { fn new() -> Bar { panic!() } } fn bar() { let b = Bar::::new(); // OK let b = Bar::(isize, usize)::new(); // OK too (for the parser) //~^ ERROR parenthesized type parameters may only be used with a `Fn` trait } fn main() {}