1error: `impl` item signature doesn't match `trait` item signature
2  --> $DIR/issue-75361-mismatched-impl.rs:18:3
3   |
4LL |   fn adjacent_edges(&self) -> Box<dyn MyTrait<Item = &Self::EdgeType>>;
5   |   --------------------------------------------------------------------- expected `fn(&'1 T) -> Box<(dyn MyTrait<Item = &'1 T> + 'static)>`
6...
7LL |   fn adjacent_edges(&self) -> Box<dyn MyTrait<Item = &Self::EdgeType> + '_> {
8   |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ found `fn(&'1 T) -> Box<(dyn MyTrait<Item = &'1 T> + '1)>`
9   |
10   = note: expected `fn(&'1 T) -> Box<(dyn MyTrait<Item = &'1 T> + 'static)>`
11              found `fn(&'1 T) -> Box<(dyn MyTrait<Item = &'1 T> + '1)>`
12help: the lifetime requirements from the `impl` do not correspond to the requirements in the `trait`
13  --> $DIR/issue-75361-mismatched-impl.rs:12:55
14   |
15LL |   fn adjacent_edges(&self) -> Box<dyn MyTrait<Item = &Self::EdgeType>>;
16   |                                                       ^^^^ consider borrowing this type parameter in the trait
17
18error: aborting due to previous error
19
20