]> git.proxmox.com Git - rustc.git/blob - src/librustc_error_codes/error_codes/E0736.md
New upstream version 1.41.1+dfsg1
[rustc.git] / src / librustc_error_codes / error_codes / E0736.md
1 `#[track_caller]` and `#[naked]` cannot both be applied to the same function.
2
3 Erroneous code example:
4
5 ```compile_fail,E0736
6 #![feature(track_caller)]
7
8 #[naked]
9 #[track_caller]
10 fn foo() {}
11 ```
12
13 This is primarily due to ABI incompatibilities between the two attributes.
14 See [RFC 2091] for details on this and other limitations.
15
16 [RFC 2091]: https://github.com/rust-lang/rfcs/blob/master/text/2091-inline-semantic.md