|
7 | 7 | fn good(_one: u32, _two: u32, _three: &str, _four: bool, _five: f32, _six: f32, _seven: bool) {}
|
8 | 8 |
|
9 | 9 | fn bad(_one: u32, _two: u32, _three: &str, _four: bool, _five: f32, _six: f32, _seven: bool, _eight: ()) {
|
10 |
| - //~^ ERROR: this function has to many arguments (8/7) |
| 10 | + //~^ ERROR: this function has too many arguments (8/7) |
11 | 11 | }
|
12 | 12 |
|
13 | 13 | trait Foo {
|
14 | 14 | fn good(_one: u32, _two: u32, _three: &str, _four: bool, _five: f32, _six: f32, _seven: bool);
|
15 | 15 | fn bad(_one: u32, _two: u32, _three: &str, _four: bool, _five: f32, _six: f32, _seven: bool, _eight: ());
|
16 |
| - //~^ ERROR: this function has to many arguments (8/7) |
| 16 | + //~^ ERROR: this function has too many arguments (8/7) |
17 | 17 | }
|
18 | 18 |
|
19 | 19 | struct Bar;
|
20 | 20 |
|
21 | 21 | impl Bar {
|
22 | 22 | fn good_method(_one: u32, _two: u32, _three: &str, _four: bool, _five: f32, _six: f32, _seven: bool) {}
|
23 | 23 | fn bad_method(_one: u32, _two: u32, _three: &str, _four: bool, _five: f32, _six: f32, _seven: bool, _eight: ()) {}
|
24 |
| - //~^ ERROR: this function has to many arguments (8/7) |
| 24 | + //~^ ERROR: this function has too many arguments (8/7) |
25 | 25 | }
|
26 | 26 |
|
27 | 27 | // ok, we don’t want to warn implementations
|
|
0 commit comments