summaryrefslogtreecommitdiffstats
path: root/compiler/rustc_error_codes/src/error_codes/E0736.md
blob: 0f3d41ba66dc4efe95f4ed957e96c309a4f97659 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
`#[track_caller]` and `#[naked]` cannot both be applied to the same function.

Erroneous code example:

```compile_fail,E0736
#[naked]
#[track_caller]
fn foo() {}
```

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

[RFC 2091]: https://github.com/rust-lang/rfcs/blob/master/text/2091-inline-semantic.md