ribbit243·12 anni fa·discussConsider a Movable file handle.File fh = File(fopen("file.txt"));foo(std::move(fh));Using fh after foo() would yield a compile error in Rust. It does not in C++.
File fh = File(fopen("file.txt"));
foo(std::move(fh));
Using fh after foo() would yield a compile error in Rust. It does not in C++.