rust/src/test/ui/parser/issue-59418.rs
2019-03-26 10:18:18 -07:00

13 lines
281 B
Rust

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);
let c = (1, 2, 3);
let d = c.1suffix;
//~^ ERROR tuple index with a suffix is invalid
println!("{}", d);
}