Skip to content

regression: parameter type may not live long enough #117055

Closed
@Mark-Simulacrum

Description

@Mark-Simulacrum
[INFO] [stdout] error[E0310]: the parameter type `S` may not live long enough
[INFO] [stdout]   --> src/uplink/ingest.rs:20:5
[INFO] [stdout]    |
[INFO] [stdout] 20 | /     tonic::transport::Server::builder()
[INFO] [stdout] 21 | |         .add_service(PacketServer::new(Gateways::new(sender)))
[INFO] [stdout]    | |______________________________________________________________^ ...so that the type `S` will meet its required lifetime bounds
[INFO] [stdout]    |
[INFO] [stdout] help: consider adding an explicit lifetime bound...
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub async fn start<S: UplinkIngest + Clone + 'static>(sender: S, addr: SocketAddr) -> Result {
[INFO] [stdout]    |                                            +++++++++

Metadata

Metadata

Assignees

No one assigned

    Labels

    P-highHigh priorityT-typesRelevant to the types team, which will review and decide on the PR/issue.disposition-closeThis PR / issue is in PFCP or FCP with a disposition to close it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions