]> git.proxmox.com Git - rustc.git/blob - compiler/rustc_error_codes/src/error_codes/E0737.md
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / compiler / rustc_error_codes / src / error_codes / E0737.md
1 `#[track_caller]` requires functions to have the `"Rust"` ABI for implicitly
2 receiving caller location. See [RFC 2091] for details on this and other
3 restrictions.
4
5 Erroneous code example:
6
7 ```compile_fail,E0737
8 #[track_caller]
9 extern "C" fn foo() {}
10 ```
11
12 [RFC 2091]: https://github.com/rust-lang/rfcs/blob/master/text/2091-inline-semantic.md