2020-05-19 22:01:19 +03:00
|
|
|
// Adding the `mut` keyword makes a function variable mutable.
|
2020-07-31 02:37:01 +03:00
|
|
|
function main(mut a: bool) {
|
|
|
|
a = true;
|
2020-05-19 22:01:19 +03:00
|
|
|
|
2020-07-31 02:37:01 +03:00
|
|
|
assert_eq!(a, true);
|
2020-05-19 22:01:19 +03:00
|
|
|
}
|