Skip to content

Broken async trait on Rust 1.81 and above #2012

Closed
@jon-chuang

Description

@jon-chuang

Bug Report

error: implementation of `std::marker::Send` is not general enough

    |
87  |       ) -> Result<Response<ServerDecodeMessage>, Status> {
    |  ________________________________________________________^
146 | |         }
147 | |     }
    | |_____^ implementation of `std::marker::Send` is not general enough
    |
    = note: `std::marker::Send` would have to be implemented for the type `&[u32]`
    = note: ...but `std::marker::Send` is actually implemented for the type `&'0 [u32]`, for some specific lifetime `'0`

No repro

Version

tonic = "0.12.3"

Platform

Macos and Ubuntu

More Info

See these Rustc issues unfixed for 5 years:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions