rust/tests/ui/issues/issue-27842.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
907 B
Plaintext
Raw Normal View History

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