]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-27842.rs
New upstream version 1.49.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-27842.rs
1 fn main() {
2 let tup = (0, 1, 2);
3 // the case where we show a suggestion
4 let _ = tup[0];
5 //~^ ERROR cannot index into a value of type
6
7 // the case where we show just a general hint
8 let i = 0_usize;
9 let _ = tup[i];
10 //~^ ERROR cannot index into a value of type
11 }