Issue with suffix validation on `0.` value on aarch64
Open
@P-E-P is already working on this.
Since Jun 4, 2026.
parser
- Dominant language
- C++
- Stars
- 2.9k
- Forks
- 231
- Avg merge
- 19h 55m
- Merged PRs (30d)
- 67
Description
fn main() {
let a = 0.;
}
This causes the following error on an aarch64 build:
test.rs:2:13: error: invalid suffix ‘0.’ for number literal
2 | let a = 0.;
| ^~
but not on x86-64:
test.rs:6:9: warning: unused name ‘a’ [-Wunused-variable]
6 | let a = 0.;
| ^
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.