]> git.lizzy.rs Git - rust.git/blob - tests/ui/traits/impl-different-num-params.stderr
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[rust.git] / tests / ui / traits / impl-different-num-params.stderr
1 error[E0050]: method `bar` has 1 parameter but the declaration in trait `Foo::bar` has 2
2   --> $DIR/impl-different-num-params.rs:5:12
3    |
4 LL |     fn bar(&self, x: usize) -> Self;
5    |            --------------- trait requires 2 parameters
6 ...
7 LL |     fn bar(&self) -> isize {
8    |            ^^^^^ expected 2 parameters, found 1
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0050`.