Skip to content

wasmtime: make add_to_linker<T: 'static>#4

Open
panekj wants to merge 1 commit into
lapce:mainfrom
panekj:patch-1
Open

wasmtime: make add_to_linker<T: 'static>#4
panekj wants to merge 1 commit into
lapce:mainfrom
panekj:patch-1

Conversation

@panekj

@panekj panekj commented Oct 4, 2025

Copy link
Copy Markdown
error[E0310]: the parameter type `T` may not live long enough
   --> /home/user/.cargo/git/checkouts/wasi-experimental-http-190d8a6effc3f6cb/80bea1240495/crates/wasi-experimental-http-wasmtime/src/lib.rs:465:9
    |
465 | /         linker.func_wrap(
466 | |             Self::MODULE,
467 | |             "req",
468 | |             move |mut caller: Caller<'_, T>,
...   |
508 | |             },
509 | |         )?;
    | |         ^
    | |         |
    | |_________the parameter type `T` must be valid for the static lifetime...
    |           ...so that the type `T` will meet its required lifetime bounds
    |
help: consider adding an explicit lifetime bound
    |
347 |     pub fn add_to_linker<T: 'static>(
    |                           +++++++++

For more information about this error, try `rustc --explain E0310`.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant