]> git.lizzy.rs Git - rust.git/blob - src/librustc_error_codes/error_codes/E0737.md
Rollup merge of #67875 - dtolnay:hidden, r=GuillaumeGomez
[rust.git] / src / librustc_error_codes / 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 #![feature(track_caller)]
9
10 #[track_caller]
11 extern "C" fn foo() {}
12 ```
13
14 [RFC 2091]: https://github.com/rust-lang/rfcs/blob/master/text/2091-inline-semantic.md