#[track_caller]
and #[naked]
cannot both be applied to the same function.
Erroneous code example:
#[naked]
#[track_caller]
fn foo() {}
RunThis is primarily due to ABI incompatibilities between the two attributes. See RFC 2091 for details on this and other limitations.