&str = menuItems[2];
error: lvalue required as left operand of assignment
That's perfectly correct - you can't assign a value to a constant address.
&str = menuItems[2];
error: lvalue required as left operand of assignment
That's perfectly correct - you can't assign a value to a constant address.