Skip to content

Parse static with omitted type #983

Closed
@dtolnay

Description

@dtolnay
Owner

As seen in the rustc test suite's src/test/ui/typeck/typeck_type_placeholder_item.rs.

error: expected `:`
  --> dev/main.rs:79:14
   |
79 |     static A = 42;
   |              ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @dtolnay

      Issue actions

        Parse static with omitted type · Issue #983 · dtolnay/syn