Skip to content

Syntax error in trait definition #928

@flodiebold

Description

@flodiebold
trait Foo {
    fn foo(&self, mut x: u32) {
    }
}

gives a syntax error on the mut. This wouldn't be allowed (by rustc) for a method without body, but with a body, it's fine.

Metadata

Metadata

Assignees

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