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