t_wの輪郭

Feedlyでフォローするボタン
Rustエラー

panic

2022/2/19 20:49:00

プログラムをエラーを生じさせるマクロ

fn main() {
    let error_message = String::from("this is error message");
    panic!("{}", error_message);
}
thread 'main' panicked at 'this is error message', src\main.rs:3:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: process didn't exit successfully: `target\debug\panic_test.exe` (exit code: 101)
should_panic