Error code E0736

#[track_caller] and #[naked] cannot both be applied to the same function.

Erroneous code example:

#[naked]
#[track_caller]
fn foo() {}
Run

This is primarily due to ABI incompatibilities between the two attributes. See RFC 2091 for details on this and other limitations.

Back to list of error codes