]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-27842.rs
Auto merge of #57108 - Mark-Simulacrum:license-remove, r=pietroalbini
[rust.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 }