]> git.lizzy.rs Git - rust.git/blob - tests/ui/index_message.stderr
Account for method call and indexing when looking for inner-most path in expression
[rust.git] / tests / ui / index_message.stderr
1 error[E0608]: cannot index into a value of type `()`
2   --> $DIR/index_message.rs:3:13
3    |
4 LL |     let _ = z[0];
5    |             ^^^^ help: to access tuple elements, use: `z.0`
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0608`.