Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUST

armanriazi•rust•error•[E0596]: cannot borrow `x` as mutable, as it is not declared as mutable

//response:
you can use RefCell<T> to mutate an immutable value 
 
PREVIOUS NEXT
Tagged: #borrow #declared #mutable
ADD COMMENT
Topic
Name
1+6 =