mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
15 lines
212 B
Rust
15 lines
212 B
Rust
//@ run-fail
|
|
//@ error-pattern:test
|
|
//@ needs-subprocess
|
|
// Just testing that panic!() type checks in statement or expr
|
|
|
|
fn f() {
|
|
let __isize: isize = panic!("test");
|
|
|
|
panic!();
|
|
}
|
|
|
|
fn main() {
|
|
f();
|
|
}
|