2 karma · joined Oct 31, 2014 (12y ago) · 1 submissions
comment 12y ago · link · parent
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++.