rust/tests/compile-fail/panic1.rs

6 lines
105 B
Rust
Raw Normal View History

2017-02-09 10:59:42 +01:00
//error-pattern: the evaluated program panicked
fn main() {
2019-02-06 11:39:16 +01:00
std::panic!("panicking from libstd");
2017-02-09 10:59:42 +01:00
}