2017-12-10 19:47:55 +00:00
|
|
|
error[E0608]: cannot index into a value of type `({integer}, {integer}, {integer})`
|
2023-08-03 19:43:17 +00:00
|
|
|
--> $DIR/issue-27842.rs:4:16
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | let _ = tup[0];
|
2023-08-03 19:43:17 +00:00
|
|
|
| ^^^ help: to access tuple elements, use: `.0`
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
|
|
error[E0608]: cannot index into a value of type `({integer}, {integer}, {integer})`
|
2023-08-03 19:43:17 +00:00
|
|
|
--> $DIR/issue-27842.rs:9:16
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | let _ = tup[i];
|
2023-08-03 19:43:17 +00:00
|
|
|
| ^-^
|
2023-04-08 21:32:36 +00:00
|
|
|
| |
|
|
|
|
| cannot access tuple elements at a variable index
|
|
|
|
|
|
|
|
|
= help: to access tuple elements, use tuple indexing syntax (e.g., `tuple.0`)
|
|
|
|
|
|
|
|
error[E0608]: cannot index into a value of type `({integer},)`
|
2023-08-03 19:43:17 +00:00
|
|
|
--> $DIR/issue-27842.rs:14:16
|
2023-04-08 21:32:36 +00:00
|
|
|
|
|
|
|
|
LL | let _ = tup[3];
|
2023-08-03 19:43:17 +00:00
|
|
|
| ^^^
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2018-11-27 02:59:49 +00:00
|
|
|
= help: to access tuple elements, use tuple indexing syntax (e.g., `tuple.0`)
|
2017-12-10 19:47:55 +00:00
|
|
|
|
2023-04-08 21:32:36 +00:00
|
|
|
error: aborting due to 3 previous errors
|
2017-12-10 19:47:55 +00:00
|
|
|
|
2018-03-03 14:59:40 +00:00
|
|
|
For more information about this error, try `rustc --explain E0608`.
|