fork/rust
git clone https://git.julia.blue/fork/rust
73528e339aa
1.40.0
1error[E0621]: explicit lifetime required in the type of `ss` 2 --> $DIR/object-lifetime-default-from-box-error.rs:18:5 3 | 4LL | fn load(ss: &mut SomeStruct) -> Box<dyn SomeTrait> { 5 | --------------- help: add explicit lifetime `'static` to the type of `ss`: `&mut SomeStruct<'static>` 6... 7LL | ss.r 8 | ^^^^ lifetime `'static` required 9 10error[E0621]: explicit lifetime required in the type of `ss` 11 --> $DIR/object-lifetime-default-from-box-error.rs:31:12 12 | 13LL | fn store1<'b>(ss: &mut SomeStruct, b: Box<dyn SomeTrait+'b>) { 14 | --------------- help: add explicit lifetime `'b` to the type of `ss`: `&mut SomeStruct<'b>` 15... 16LL | ss.r = b; 17 | ^ lifetime `'b` required 18 19error: aborting due to 2 previous errors 20 21For more information about this error, try `rustc --explain E0621`.