]> git.proxmox.com Git - rustc.git/blame - src/librustc_error_codes/error_codes/E0736.md
New upstream version 1.47.0+dfsg1
[rustc.git] / src / librustc_error_codes / error_codes / E0736.md
CommitLineData
60c5eb7d
XL
1`#[track_caller]` and `#[naked]` cannot both be applied to the same function.
2
3Erroneous code example:
4
5```compile_fail,E0736
60c5eb7d
XL
6#[naked]
7#[track_caller]
8fn foo() {}
9```
10
11This is primarily due to ABI incompatibilities between the two attributes.
12See [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