Skip to content

E0537 has a span with extra characters #36182

Closed
@sophiajt

Description

@sophiajt
error[E0537]: invalid predicate `unknown`
  --> src/test/compile-fail/E0537.rs:11:7
   |
11 | #[cfg(unknown())] //~ ERROR E0537
   |       ^^^^^^^^^^

Currently, we underline a little too much of the predicate. Notice that we underline two ) instead of just the matching )

I noticed that E0535 and E0536 also have the same problem

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

    Issue actions