]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_codes/src/error_codes/E0736.md
Rollup merge of #92310 - ehuss:rustdoc-ice, r=estebank
[rust.git] / compiler / rustc_error_codes / src / 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 #[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