rust/src/test/ui/parser/issue-59418.rs

10 lines
161 B
Rust
Raw Normal View History

struct X(i32,i32,i32);
fn main() {
let a = X(1, 2, 3);
let b = a.1suffix;
//~^ ERROR tuple index with a suffix is invalid
println!("{}", b);
}