Skip to content

Fix: Consider U+01C3(ǃ) as a misleading punctuation, not as alphabetic #104574

Open
@Super-Pizza

Description

@Super-Pizza

here's my reasoning:

1ǃ=2 // U+1C3 inserted here

errors with the wrong message:

error: invalid suffix `ǃ` for number literal
 --> src/main.rs:2:1
  |
2 | 1ǃ=2
  | ^^ invalid suffix `ǃ`
  |
  = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.)

error[E0070]: invalid left-hand side of assignment
 --> src/main.rs:2:3
  |
2 | 1ǃ=2
  | --^
  | |
  | cannot assign to this expression

For more information about this error, try `rustc --explain E0070`.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-UnicodeArea: UnicodeA-diagnosticsArea: Messages for errors, warnings, and lintsC-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions