1 error[E0495]: cannot infer an appropriate lifetime for automatic coercion due to conflicting requirements
2 --> $DIR/object-lifetime-default-elision.rs:81:5
7 note: first, the lifetime cannot outlive the lifetime 'a as defined on the function body at 64:10...
8 --> $DIR/object-lifetime-default-elision.rs:64:10
10 LL | fn load3<'a,'b>(ss: &'a SomeTrait) -> &'b SomeTrait {
12 note: ...so that reference does not outlive borrowed content
13 --> $DIR/object-lifetime-default-elision.rs:81:5
17 note: but, the lifetime must be valid for the lifetime 'b as defined on the function body at 64:13...
18 --> $DIR/object-lifetime-default-elision.rs:64:13
20 LL | fn load3<'a,'b>(ss: &'a SomeTrait) -> &'b SomeTrait {
22 = note: ...so that the expression is assignable:
23 expected &'b (dyn SomeTrait + 'b)
26 error[E0495]: cannot infer an appropriate lifetime due to conflicting requirements
27 --> $DIR/object-lifetime-default-elision.rs:81:5
32 note: first, the lifetime cannot outlive the lifetime 'a as defined on the function body at 64:10...
33 --> $DIR/object-lifetime-default-elision.rs:64:10
35 LL | fn load3<'a,'b>(ss: &'a SomeTrait) -> &'b SomeTrait {
37 note: ...so that the declared lifetime parameter bounds are satisfied
38 --> $DIR/object-lifetime-default-elision.rs:81:5
42 note: but, the lifetime must be valid for the lifetime 'b as defined on the function body at 64:13...
43 --> $DIR/object-lifetime-default-elision.rs:64:13
45 LL | fn load3<'a,'b>(ss: &'a SomeTrait) -> &'b SomeTrait {
47 = note: ...so that the expression is assignable:
48 expected &'b (dyn SomeTrait + 'b)
51 error: aborting due to 2 previous errors
53 For more information about this error, try `rustc --explain E0495`.