Closed
Description
As @eddyb noted on IRC:
15:04 <eddyb> this is weird: http://is.gd/Zjyjmd - it's dropping the outermost temporary, then the innermost, then the middle - shouldn't it be inside-out? or outside-in?
15:04 <eddyb> old trans appears to call them outside-in
15:04 <eddyb> and this drops x before foo(&x) http://is.gd/P1ergF
Related test:
src/test/run-pass/issue-23338-ensure-param-drop-order.rs