]> git.lizzy.rs Git - rust.git/commit
Add tests that index with a `const` value.
authorShea Newton <shnewto@gmail.com>
Fri, 15 Jun 2018 15:54:38 +0000 (15:54 +0000)
committerShea Newton <shnewto@gmail.com>
Tue, 19 Jun 2018 16:28:10 +0000 (16:28 +0000)
commite63f5dfedbb004afc6e9ca303b12f1c8f8cbea0d
tree983bddd2e8e4c5d95eb26eac70e3b1011d4adc84
parent4ec439bef0124a01dd71ea0d5f441066690f33ec
Add tests that index with a `const` value.

In this commit tests were added to ensure that tests with a `const` index behaved as expected.
In order to minimize the changes to the test's corresponding `stderr`, the tests were appended to
the end of the file.
tests/ui/indexing_slicing.rs
tests/ui/indexing_slicing.stderr