Stack.top returns a mutable pointer, so it should take &mut self