1 2 3 4 5 6 7 8 9 10 11 12 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() {}