-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsC-bugCategory: This is a bug.Category: This is a bug.
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);
| ^^^^^^^^^^^^^^^^^^
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsC-bugCategory: This is a bug.Category: This is a bug.