mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-01 01:26:32 +00:00
Also includes `HELP` checks for add-tuple-within-arguments.rs to make it clear that the referenced rules are being tested
13 lines
283 B
Rust
13 lines
283 B
Rust
//@ check-pass
|
|
//@ reference: expr.tuple-index.syntax
|
|
//@ reference: comments.normal.tokenization
|
|
|
|
fn main() {
|
|
let tuple = (((),),);
|
|
|
|
let () = tuple. 0.0; // OK, whitespace
|
|
let () = tuple.0. 0; // OK, whitespace
|
|
|
|
let () = tuple./*special cases*/0.0; // OK, comment
|
|
}
|