Closed
Description
impl Backend: 'static
error[E0310]: the parameter type `impl Backend` may not live long enough
--> src/lib.rs:373:9
|
362 | fn codegen_allocator_shim(sess: &Session, module: &mut Module<impl Backend>) {
| ------------- help: consider adding an explicit lifetime bound `impl Backend: 'static`...
...
373 | allocator::codegen(module, kind);
| ^^^^^^^^^^^^^^^^^^
|
note: ...so that the type `impl Backend` will meet its required lifetime bounds
--> src/lib.rs:373:9
|
373 | allocator::codegen(module, kind);
| ^^^^^^^^^^^^^^^^^^