]> git.proxmox.com Git - rustc.git/blob - src/test/ui/in-band-lifetimes/mismatched_trait_impl-2.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / in-band-lifetimes / mismatched_trait_impl-2.stderr
1 error: `impl` item signature doesn't match `trait` item signature
2 --> $DIR/mismatched_trait_impl-2.rs:9:5
3 |
4 LL | fn deref(&self) -> &dyn Trait {
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ found fn(&Struct) -> &dyn Trait
6 |
7 ::: $SRC_DIR/libcore/ops/deref.rs:LL:COL
8 |
9 LL | fn deref(&self) -> &Self::Target;
10 | --------------------------------- expected fn(&Struct) -> &(dyn Trait + 'static)
11 |
12 = note: expected `fn(&Struct) -> &(dyn Trait + 'static)`
13 found `fn(&Struct) -> &dyn Trait`
14
15 error: aborting due to previous error
16