1 // Test that parameter cardinality or missing method error gets span exactly.
5 fn zero(self) -> Foo { self }
6 fn one(self, _: isize) -> Foo { self }
7 fn two(self, _: isize, _: isize) -> Foo { self }
8 fn three<T>(self, _: T, _: T, _: T) -> Foo { self }
13 x.zero(0) //~ ERROR this function takes 0 arguments but 1 argument was supplied
14 .one() //~ ERROR this function takes 1 argument but 0 arguments were supplied
15 .two(0); //~ ERROR this function takes 2 arguments but 1 argument was supplied
19 .take() //~ ERROR no method named `take` found
21 y.three::<usize>(); //~ ERROR this function takes 3 arguments but 0 arguments were supplied