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 defined here...
8 --> $DIR/issue-17758.rs:6:12
12 note: ...so that reference does not outlive borrowed content
13 --> $DIR/issue-17758.rs:7:9
17 note: but, the lifetime must be valid for the lifetime `'a` as defined here...
18 --> $DIR/issue-17758.rs:4:11
22 note: ...so that the types are compatible
23 --> $DIR/issue-17758.rs:7:14
27 = note: expected `&'a Self`
30 error: aborting due to previous error
32 For more information about this error, try `rustc --explain E0495`.