TAKOYAKING’s blog 一覧

TAKOYAKING’s blog

たこ焼き系

2020-03-06から1日間の記事一覧

Rust: エラー処理のための「Try!」と「?」

try!入門 | Rust by Example こちらのサンプルコードで fn setup() -> std::io::Result<()> { let mut a = try!(File::create("a")); try!(a.write_all(b"grape")); let mut b = try!(File::create("b")); b.write_all(b"fruit") } を実行すると expected ex…