1 // Tests to make sure that parens are needed for method calls without arguments.
2 // outputs text to make sure either an anonymous function is provided or
3 // open-close '()' parens are given
14 fn get_x(&self) -> isize {
20 let point: Point = Point::new();
22 .get_x;//~ ERROR attempted to take value of method `get_x` on type `Point`
24 // Ensure the span is useful
25 let ys = &[1,2,3,4,5,6,7];
29 .filter_map; //~ ERROR attempted to take value of method `filter_map` on type