Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions tests/ui/lexer/unicode-pattern-white-space.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//@ run-pass
// Test that the Rust lexer accepts vertical tab (\x0B) as valid whitespace
// between tokens. Vertical tab is part of Unicode Pattern_White_Space, which
// the Rust language specification uses to define whitespace tokens.
// See: https://unicode.org/reports/tr31/#Pattern_White_Space
//
// The space between "let" and "_" below is a vertical tab character (\x0B),
// not a regular space.

fn main() {
let _ = 1;
}
Loading