1 error[E0277]: the trait bound `Vec<usize>: ~const Index<_>` is not satisfied
2 --> $DIR/issue-94675.rs:9:9
4 LL | self.bar[0] = baz.len();
5 | ^^^^^^^^^^^ vector indices are of type `usize` or ranges of `usize`
7 = help: the trait `~const Index<_>` is not implemented for `Vec<usize>`
8 note: the trait `Index<_>` is implemented for `Vec<usize>`, but that implementation is not `const`
9 --> $DIR/issue-94675.rs:9:9
11 LL | self.bar[0] = baz.len();
14 error[E0277]: the trait bound `Vec<usize>: ~const IndexMut<usize>` is not satisfied
15 --> $DIR/issue-94675.rs:9:9
17 LL | self.bar[0] = baz.len();
18 | ^^^^^^^^^^^ vector indices are of type `usize` or ranges of `usize`
20 = help: the trait `~const IndexMut<usize>` is not implemented for `Vec<usize>`
21 note: the trait `IndexMut<usize>` is implemented for `Vec<usize>`, but that implementation is not `const`
22 --> $DIR/issue-94675.rs:9:9
24 LL | self.bar[0] = baz.len();
27 error: aborting due to 2 previous errors
29 For more information about this error, try `rustc --explain E0277`.