fork/rust
git clone https://git.julia.blue/fork/rust
4fb7144ed15
1.43.0
1error[E0050]: method `foo` has 1 parameter but the declaration in trait `Foo::foo` has 2 2 --> $DIR/E0050.rs:10:12 3 | 4LL | fn foo(&self, x: u8) -> bool; 5 | ------------ trait requires 2 parameters 6... 7LL | fn foo(&self) -> bool { true } 8 | ^^^^^ expected 2 parameters, found 1 9 10error[E0050]: method `bar` has 1 parameter but the declaration in trait `Foo::bar` has 4 11 --> $DIR/E0050.rs:11:12 12 | 13LL | fn bar(&self, x: u8, y: u8, z: u8); 14 | -------------------------- trait requires 4 parameters 15... 16LL | fn bar(&self) { } 17 | ^^^^^ expected 4 parameters, found 1 18 19error[E0050]: method `less` has 4 parameters but the declaration in trait `Foo::less` has 1 20 --> $DIR/E0050.rs:12:13 21 | 22LL | fn less(&self); 23 | ----- trait requires 1 parameter 24... 25LL | fn less(&self, x: u8, y: u8, z: u8) { } 26 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 1 parameter, found 4 27 28error: aborting due to 3 previous errors 29 30For more information about this error, try `rustc --explain E0050`.