```cpp std::vector<Foo> v; v.push_back(Foo(1)); // calls push_back(&&) ``` In C++ the sequence on Foo is: 1. Construct the temporary 2. Move construct Foo into push_back 3. Call the destructor or Foo 3 is skipped in Rust --- These patterns also don't call the destructor: 1. `Foo(1);` - discarded constructor 2. `Foo(1).member;` 3. `int defaulted(const Foo &f = Foo(42)) {}`
Activity