2019-03-25 18:11:21 -05:00
|
|
|
struct X(i32,i32,i32);
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let a = X(1, 2, 3);
|
|
|
|
let b = a.1suffix;
|
2019-03-26 12:18:18 -05:00
|
|
|
//~^ ERROR tuple index with a suffix is invalid
|
2019-03-25 18:11:21 -05:00
|
|
|
println!("{}", b);
|
2019-03-25 23:38:23 -05:00
|
|
|
let c = (1, 2, 3);
|
|
|
|
let d = c.1suffix;
|
2019-03-26 12:18:18 -05:00
|
|
|
//~^ ERROR tuple index with a suffix is invalid
|
2019-03-25 23:38:23 -05:00
|
|
|
println!("{}", d);
|
2019-03-25 18:11:21 -05:00
|
|
|
}
|