1 error[E0621]: explicit lifetime required in the type of `ss`
2 --> $DIR/object-lifetime-default-from-box-error.rs:28:5
4 LL | fn load(ss: &mut SomeStruct) -> Box<SomeTrait> {
5 | --------------- help: add explicit lifetime `'static` to the type of `ss`: `&mut SomeStruct<'static>`
7 LL | ss.r //~ ERROR explicit lifetime required in the type of `ss` [E0621]
8 | ^^^^ lifetime `'static` required
10 error[E0507]: cannot move out of borrowed content
11 --> $DIR/object-lifetime-default-from-box-error.rs:28:5
13 LL | ss.r //~ ERROR explicit lifetime required in the type of `ss` [E0621]
14 | ^^^^ cannot move out of borrowed content
16 error[E0621]: explicit lifetime required in the type of `ss`
17 --> $DIR/object-lifetime-default-from-box-error.rs:41:5
19 LL | fn store1<'b>(ss: &mut SomeStruct, b: Box<SomeTrait+'b>) {
20 | --------------- help: add explicit lifetime `'b` to the type of `ss`: `&mut SomeStruct<'b>`
22 LL | ss.r = b; //~ ERROR 41:12: 41:13: explicit lifetime required in the type of `ss` [E0621]
23 | ^^^^ lifetime `'b` required
25 error: aborting due to 3 previous errors
27 Some errors occurred: E0507, E0621.
28 For more information about an error, try `rustc --explain E0507`.