Skip to content

Incorrect span when reporting unexpected token #2017

Closed
@jdm

Description

@jdm
Contributor
fn main() {
    #error("%?", x);*/
}

yields

rust_dbg2.rs:3:0: 3:1 error: unexpected token: '/'
rust_dbg2.rs:3 }
               ^

Activity

ghost assigned on Mar 20, 2012
added a commit that references this issue on May 5, 2020

Auto merge of rust-lang#5550 - ebroto:manual_non_exhaustive, r=flip1995

cc9088f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @jdm@marijnh

        Issue actions

          Incorrect span when reporting unexpected token · Issue #2017 · rust-lang/rust