diff options
Diffstat (limited to 'tests/ui/indexing/index_message.rs')
-rw-r--r-- | tests/ui/indexing/index_message.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ui/indexing/index_message.rs b/tests/ui/indexing/index_message.rs new file mode 100644 index 000000000..88b848d6f --- /dev/null +++ b/tests/ui/indexing/index_message.rs @@ -0,0 +1,4 @@ +fn main() { + let z = (10,); + let _ = z[0]; //~ ERROR cannot index into a value of type `({integer},)` +} |