Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
ui
/
rfc-2091-track-caller
/
error-with-start.rs
blob: 0cab47170631bab4b66d0058d2721fb95214b137 [
file
] [
log
] [
blame
]
#![
feature
(
start
)]
#[
start
]
#[
track_caller
]
//~ ERROR `start` is not allowed to be `#[track_caller]`
fn
start
(
_argc
:
isize
,
_argv
:
*
const
*
const
u8
)
->
isize
{
panic
!(
"{}: oh no"
,
std
::
panic
::
Location
::
caller
());
}