Skip to content

Parser updates for #67131 #3578

Closed
@lnicola

Description

@lnicola

See rust-lang/rust#67131.

I tried the following as a quick test:

#[cfg(FALSE)]
trait T {
    default fn foo(&self);
}

struct S;

#[cfg(FALSE)]
impl S {
    const C: i32;
    type Ty;
    type Qux: Debug;

    fn foo();
    fn bar(..., x: usize) {}
    fn baz(...) {}
}

fn main() {}

RA reports parsing errors on default fn in a trait and on fn bar(..., x: usize).

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-parserparser issuesS-actionableSomeone could pick this issue up and work on it right now

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions