I tried this code:
---\vcargo
---
fn main() {}
I expected to see this happen: error
Instead, this happened: its accepted
This is a shortcoming of the RFC which used a loose term "whitespace" which tends to mean to rustc Pattern_White_Space when only the sub-category of horizontal whitespace was intended
Meta
rustc --version --verbose:
rustc 1.91.0-nightly (54c581243 2025-08-25)
binary: rustc
commit-hash: 54c581243c977c7662c949b5795c31147f8a60ed
commit-date: 2025-08-25
host: x86_64-unknown-linux-gnu
release: 1.91.0-nightly
LLVM version: 21.1.0
Backtrace
I tried this code:
I expected to see this happen: error
Instead, this happened: its accepted
This is a shortcoming of the RFC which used a loose term "whitespace" which tends to mean to rustc
Pattern_White_Spacewhen only the sub-category of horizontal whitespace was intendedMeta
rustc --version --verbose:Backtrace