Sign in
chromium
/
external
/
github.com
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
macros
/
panic-macro-basic.rs
blob: 96ed4265ef6eb224dafe444b5a475554adb68da6 [
file
] [
log
] [
blame
]
//@ 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
();
}