diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-10-02 10:27:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-02 10:27:49 +0200 |
| commit | 7320d3ed6104280b4af5f99695544b861c0a2b86 (patch) | |
| tree | 8d20cd1b8d065cbda31b48a372c3b5957e2d0481 /tests/ui/indexing/index_message.stderr | |
| parent | ac7beab527861103dd1e1515d534f87956786554 (diff) | |
| parent | 86f2d424c8cda473aa1bf91365f499cfe520c54a (diff) | |
| download | rust-7320d3ed6104280b4af5f99695544b861c0a2b86.tar.gz rust-7320d3ed6104280b4af5f99695544b861c0a2b86.zip | |
Rollup merge of #146585 - hkBst:indexing-1, r=jdonszelmann
indexing: reword help After looking at https://github.com/rust-lang/rust/issues/40850, I thought I'd try to improve wording around error E0608 a bit. Hopefully I've succeeded.
Diffstat (limited to 'tests/ui/indexing/index_message.stderr')
| -rw-r--r-- | tests/ui/indexing/index_message.stderr | 4 |
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 |
