Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
ui
/
rfc-2091-track-caller
/
error-with-main.rs
blob: b2ea31bb5178b48493c49aaa089644bfb2fd95d0 [
file
] [
log
] [
blame
]
#[
track_caller
]
//~ ERROR `main` function is not allowed to be
fn
main
()
{
panic
!(
"{}: oh no"
,
std
::
panic
::
Location
::
caller
());
}