rust/src/test/ui/error-codes/E0050.stderr

31 lines
1.1 KiB
Plaintext
Raw Normal View History

2018-02-07 21:35:35 -06:00
error[E0050]: method `foo` has 1 parameter but the declaration in trait `Foo::foo` has 2
--> $DIR/E0050.rs:20:12
|
2018-02-22 18:42:32 -06:00
LL | fn foo(&self, x: u8) -> bool;
2018-02-07 21:35:35 -06:00
| -- trait requires 2 parameters
...
2018-02-22 18:42:32 -06:00
LL | fn foo(&self) -> bool { true } //~ ERROR E0050
2018-02-07 21:35:35 -06:00
| ^^^^^ expected 2 parameters, found 1
error[E0050]: method `bar` has 1 parameter but the declaration in trait `Foo::bar` has 4
--> $DIR/E0050.rs:21:12
|
2018-02-22 18:42:32 -06:00
LL | fn bar(&self, x: u8, y: u8, z: u8);
2018-02-07 21:35:35 -06:00
| -- trait requires 4 parameters
...
2018-02-22 18:42:32 -06:00
LL | fn bar(&self) { } //~ ERROR E0050
2018-02-07 21:35:35 -06:00
| ^^^^^ expected 4 parameters, found 1
error[E0050]: method `less` has 4 parameters but the declaration in trait `Foo::less` has 1
--> $DIR/E0050.rs:22:37
|
2018-02-22 18:42:32 -06:00
LL | fn less(&self);
2018-02-07 21:35:35 -06:00
| ----- trait requires 1 parameter
...
2018-02-22 18:42:32 -06:00
LL | fn less(&self, x: u8, y: u8, z: u8) { } //~ ERROR E0050
2018-02-07 21:35:35 -06:00
| ^^ expected 1 parameter, found 4
error: aborting due to 3 previous errors
2018-02-19 14:40:25 -06:00
If you want more information on this error, try using "rustc --explain E0050"