1 error[E0495]: cannot infer an appropriate lifetime for autoref due to conflicting requirements
2 --> $DIR/region-object-lifetime-2.rs:14:7
7 note: first, the lifetime cannot outlive the lifetime `'a` as defined here...
8 --> $DIR/region-object-lifetime-2.rs:13:42
10 LL | fn borrowed_receiver_different_lifetimes<'a,'b>(x: &'a dyn Foo) -> &'b () {
12 note: ...so that reference does not outlive borrowed content
13 --> $DIR/region-object-lifetime-2.rs:14:5
17 note: but, the lifetime must be valid for the lifetime `'b` as defined here...
18 --> $DIR/region-object-lifetime-2.rs:13:45
20 LL | fn borrowed_receiver_different_lifetimes<'a,'b>(x: &'a dyn Foo) -> &'b () {
22 note: ...so that reference does not outlive borrowed content
23 --> $DIR/region-object-lifetime-2.rs:14:5
28 error: aborting due to previous error
30 For more information about this error, try `rustc --explain E0495`.