Skip to content

compile async await function error #53989

@Brooooooklyn

Description

@Brooooooklyn

Error message:
error: internal compiler error: librustc/infer/region_constraints/mod.rs:659: cannot relate bound region: ReLateBound(DebruijnIndex(1), BrAnon(2)) <= '_#0r

Backtrace:

thread 'main' panicked at 'Box<Any>', librustc_errors/lib.rs:525:9
query stack during panic:
#0 [evaluate_obligation] evaluating trait selection obligation `impl std::future::Future: std::marker::Send`
#1 [typeck_tables_of] processing `main`
#2 [typeck_tables_of] processing `main::{{closure}}`
#3 [type_of] processing `main::{{closure}}`
end of query stack
error: aborting due to previous error

Activity

added
I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
on Sep 7, 2018
paracat

paracat commented on Nov 25, 2018

@paracat

while not exactly the same, i have created a commit for the project reflow that produces a compiler error involving bound region and DebruijnIndex

https://github.com/paracat/reflow/commit/a82b57ce5ab0fcfaca8a82dade25733a6299fdf6

It happened when I'm trying to replace &mut TcpStream with AsyncRead

the commit that comes before this one compiles fine. this should make it easier for the Rust team to locate the error

this is probably related to #55809
with some minor changes i can produce that error

cramertj

cramertj commented on Feb 22, 2019

@cramertj
Member

Closing as duplicate of #57084.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-async-awaitArea: Async & AwaitI-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @Centril@Brooooooklyn@cramertj@paracat

        Issue actions

          compile async await function error · Issue #53989 · rust-lang/rust