rust/tests/ui/trait-method-number-parameters.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
167 B
Rust
Raw Normal View History

trait Foo {
fn foo(&mut self, x: i32, y: i32) -> i32;
}
impl Foo for i32 {
fn foo(
&mut self, //~ ERROR
x: i32,
) {
}
}
fn main() {}