use std::fs; use std::io; fn my_function() -> Result<(), io::Error> { let content = fs::read_to_string("file.json")?; Ok(()) } ってな感じで`io::Error`を返すようにします。 じゃあもし、1つの関数が複数の異なるエラーを起こす可能性がある場合どうするか?