fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
446 B12 linesraw
1error[E0050]: method `bar` has 1 parameter but the declaration in trait `Foo::bar` has 2
2  --> $DIR/trait-impl-different-num-params.rs:5:12
3   |
4LL |     fn bar(&self, x: usize) -> Self;
5   |            --------------- trait requires 2 parameters
6...
7LL |     fn bar(&self) -> isize {
8   |            ^^^^^ expected 2 parameters, found 1
9
10error: aborting due to previous error
11
12For more information about this error, try `rustc --explain E0050`.