Skip to content

error: expected ; or } but found } #6610

Closed
@huonw

Description

@huonw
trait Foo { fn a() }

fn main() {}
bad-expect.rs:1:19: 1:20 error: expected `;` or `}` but found `}`
bad-expect.rs:1 trait Foo { fn a() }
                                   ^

Presumably the or }`` is incorrect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frontendArea: Compiler frontend (errors, parsing and HIR)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions