Files
rust/tests/ui/tuple/index-float.rs
Daniel Scherzer a9431675fd tests/ui/tuple: add annotations for reference rules
Also includes `HELP` checks for add-tuple-within-arguments.rs to make it clear
that the referenced rules are being tested
2026-08-11 16:58:46 -07:00

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
}