]>
Commit | Line | Data |
---|---|---|
60c5eb7d XL |
1 | `#[track_caller]` and `#[naked]` cannot both be applied to the same function. |
2 | ||
3 | Erroneous code example: | |
4 | ||
5 | ```compile_fail,E0736 | |
60c5eb7d XL |
6 | #[naked] |
7 | #[track_caller] | |
8 | fn foo() {} | |
9 | ``` | |
10 | ||
11 | This is primarily due to ABI incompatibilities between the two attributes. | |
12 | See [RFC 2091] for details on this and other limitations. | |
13 | ||
14 | [RFC 2091]: https://github.com/rust-lang/rfcs/blob/master/text/2091-inline-semantic.md |