fork/rust

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

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
571 B14 linesraw
1error: `impl` item signature doesn't match `trait` item signature
2  --> $DIR/mismatched_trait_impl.rs:9:5
3   |
4LL |     fn foo(&self, x: &'a u32, y: &u32) -> &'a u32;
5   |     ---------------------------------------------- expected fn(&i32, &'a u32, &u32) -> &'a u32
6...
7LL |     fn foo(&self, x: &u32, y: &'a u32) -> &'a u32 {
8   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ found fn(&i32, &u32, &u32) -> &u32
9   |
10   = note: expected `fn(&i32, &'a u32, &u32) -> &'a u32`
11              found `fn(&i32, &u32, &u32) -> &u32`
12
13error: aborting due to previous error
14