1 error[E0495]: cannot infer an appropriate lifetime for autoref due to conflicting requirements
2 --> $DIR/issue-17758.rs:7:14
7 note: first, the lifetime cannot outlive the anonymous lifetime #1 defined on the method body at 6:5...
8 --> $DIR/issue-17758.rs:6:5
10 LL | / fn bar(&self) {
15 note: ...so that reference does not outlive borrowed content
16 --> $DIR/issue-17758.rs:7:9
20 note: but, the lifetime must be valid for the lifetime 'a as defined on the trait at 4:11...
21 --> $DIR/issue-17758.rs:4:11
25 = note: ...so that the types are compatible:
29 error: aborting due to previous error