Skip to content

Unable to parse unsafe async fn #3025

Closed
@LucioFranco

Description

@LucioFranco

I am running into a reproducible bug with ra that says Syntax Error: expected existential, fn, trait or impl right in between the async and unsafe. Running the check manually via cargo seems to report no errors.

struct Foo;

impl Foo {
	pub async unsafe fn bar() {}
}

should reproduce it.

Reference sha d92a15c1637860a669970142abe37d1daf5f2c73

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