Skip to content

Destructuring isn't supported in default trait methods' arguments. #14267

@eddyb

Description

@eddyb

Minimal testcase:

trait Foo {
    // error: expected `,` but found `{`
    fn foo(self, Bar {baz}: Bar) {}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-grammarArea: The grammar of RustA-parserArea: The lexing & parsing of Rust source code to an ASTA-trait-systemArea: Trait systemC-feature-requestCategory: A feature request, i.e: not implemented / a PR.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions