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