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 //~^ ERROR cannot call non-const fn `Vec::<u32>::len` in constant functions
11 //~| ERROR the trait bound `Vec<usize>: ~const IndexMut<usize>` is not satisfied
12 //~| ERROR cannot call non-const operator in constant functions