diff options
| author | Jonathan Behrens <fintelia@gmail.com> | 2018-01-29 15:01:52 -0500 |
|---|---|---|
| committer | Jonathan Behrens <fintelia@gmail.com> | 2018-03-02 23:25:52 -0500 |
| commit | 2db05f04bebd8a8cfbdb323fbd6d3341aee551d9 (patch) | |
| tree | 5154e1422fee8b7d119e296c4f3e967e587ce873 /src | |
| parent | 46fef766b0dc3717937911f0f67c9f1ee2a7f21e (diff) | |
| download | rust-2db05f04bebd8a8cfbdb323fbd6d3341aee551d9.tar.gz rust-2db05f04bebd8a8cfbdb323fbd6d3341aee551d9.zip | |
Update UI test
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/ui/index-help.stderr | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/test/ui/index-help.stderr b/src/test/ui/index-help.stderr index f4dde95b104..1b5d28d5bb1 100644 --- a/src/test/ui/index-help.stderr +++ b/src/test/ui/index-help.stderr @@ -1,10 +1,11 @@ -error[E0277]: the trait bound `std::vec::Vec<{integer}>: std::ops::Index<i32>` is not satisfied +error[E0277]: the trait bound `i32: std::slice::SliceIndex<[{integer}]>` is not satisfied --> $DIR/index-help.rs:13:5 | LL | x[0i32]; //~ ERROR E0277 - | ^^^^^^^ vector indices are of type `usize` or ranges of `usize` + | ^^^^^^^ slice indices are of type `usize` or ranges of `usize` | - = help: the trait `std::ops::Index<i32>` is not implemented for `std::vec::Vec<{integer}>` + = help: the trait `std::slice::SliceIndex<[{integer}]>` is not implemented for `i32` + = note: required because of the requirements on the impl of `std::ops::Index<i32>` for `[{integer}]` error: aborting due to previous error |
