about summary refs log tree commit diff
path: root/tests/ui/indexing
diff options
context:
space:
mode:
authorMarijn Schouten <mhkbst@gmail.com>2025-09-15 11:35:08 +0000
committerMarijn Schouten <mhkbst@gmail.com>2025-10-01 07:39:03 +0000
commit86f2d424c8cda473aa1bf91365f499cfe520c54a (patch)
tree68f66af8f69f3572ec84a7ecb18b256b4190c18c /tests/ui/indexing
parenta2db9280539229a3b8a084a09886670a57bc7e9c (diff)
downloadrust-86f2d424c8cda473aa1bf91365f499cfe520c54a.tar.gz
rust-86f2d424c8cda473aa1bf91365f499cfe520c54a.zip
indexing: reword help
Co-authored-by: beef <ent3rm4n@gmail.com>
Diffstat (limited to 'tests/ui/indexing')
-rw-r--r--tests/ui/indexing/index_message.stderr4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/ui/indexing/index_message.stderr b/tests/ui/indexing/index_message.stderr
index 6affb1ed962..b6f61379f2a 100644
--- a/tests/ui/indexing/index_message.stderr
+++ b/tests/ui/indexing/index_message.stderr
@@ -2,7 +2,9 @@ error[E0608]: cannot index into a value of type `({integer},)`
   --> $DIR/index_message.rs:3:14
    |
 LL |     let _ = z[0];
-   |              ^^^ help: to access tuple elements, use: `.0`
+   |              ^^^ help: to access tuple element `0`, use: `.0`
+   |
+   = help: tuples are indexed with a dot and a literal index: `tuple.0`, `tuple.1`, etc.
 
 error: aborting due to 1 previous error