]> git.proxmox.com Git - rustc.git/blame - src/test/ui/in-band-lifetimes/mismatched_trait_impl.nll.stderr
New upstream version 1.40.0+dfsg1
[rustc.git] / src / test / ui / in-band-lifetimes / mismatched_trait_impl.nll.stderr
CommitLineData
e74abb32 1error: `impl` item signature doesn't match `trait` item signature
48663c56
XL
2 --> $DIR/mismatched_trait_impl.rs:9:5
3 |
e74abb32
XL
4LL | fn foo(&self, x: &'a u32, y: &u32) -> &'a u32;
5 | ---------------------------------------------- expected fn(&i32, &'a u32, &u32) -> &'a u32
6...
48663c56 7LL | 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
13error: aborting due to previous error
14