diff options
Diffstat (limited to 'tests/ui/trait-method-number-parameters.rs')
-rw-r--r-- | tests/ui/trait-method-number-parameters.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/trait-method-number-parameters.rs b/tests/ui/trait-method-number-parameters.rs new file mode 100644 index 000000000..719005d66 --- /dev/null +++ b/tests/ui/trait-method-number-parameters.rs @@ -0,0 +1,13 @@ +trait Foo { + fn foo(&mut self, x: i32, y: i32) -> i32; +} + +impl Foo for i32 { + fn foo( + &mut self, //~ ERROR + x: i32, + ) { + } +} + +fn main() {} |