I thought that #rust prevented a variable from being moved more than once. Why does this not error?
@ike
Indeed, if you would want to get a reference, you would need to do &n or &mut n.
It is because numbers implement the Copy trait, which means code such as this would simply copy the entire value instead of moving it.
@UkiahSmith