1 #![feature(const_trait_impl, const_mut_refs)]
4 bar: &'a mut Vec<usize>,
8 const fn spam(&mut self, baz: &mut Vec<u32>) {
9 self.bar[0] = baz.len();
10 //~^ the trait bound `Vec<usize>: ~const Index<_>` is not satisfied
11 //~| the trait bound `Vec<usize>: ~const IndexMut<usize>` is not satisfied