Is the order of dropping elements of array or tuple defined?


#1

I want to know if I can relay on the order of dropping elements of fixed-size array or tuple.

This test shows it’s left-to-right but is it defined but specs?


#2

Yes, it is specified: https://doc.rust-lang.org/reference/destructors.html


#3