3 ms·
Rust sometimes throws away errors when they would be awkward to handle - close() in Drop and println!() are important examples. A Hello World with a closed stdo
by petmon 5y ago
Rust sometimes throws away errors when they would be awkward to handle - close() in Drop and println!() are important examples. A Hello World with a closed stdout will correctly fail in C but "succeed" in Rust because it ignores EBADF.
https://github.com/rust-lang/rfcs/pull/1014 https://github.com/rust-lang/rfcs/pull/1014