fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
907 B27 linesraw
1error[E0608]: cannot index into a value of type `({integer}, {integer}, {integer})`
2  --> $DIR/issue-27842.rs:4:16
3   |
4LL |     let _ = tup[0];
5   |                ^^^ help: to access tuple elements, use: `.0`
6
7error[E0608]: cannot index into a value of type `({integer}, {integer}, {integer})`
8  --> $DIR/issue-27842.rs:9:16
9   |
10LL |     let _ = tup[i];
11   |                ^-^
12   |                 |
13   |                 cannot access tuple elements at a variable index
14   |
15   = help: to access tuple elements, use tuple indexing syntax (e.g., `tuple.0`)
16
17error[E0608]: cannot index into a value of type `({integer},)`
18  --> $DIR/issue-27842.rs:14:16
19   |
20LL |     let _ = tup[3];
21   |                ^^^
22   |
23   = help: to access tuple elements, use tuple indexing syntax (e.g., `tuple.0`)
24
25error: aborting due to 3 previous errors
26
27For more information about this error, try `rustc --explain E0608`.