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