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