]> git.lizzy.rs Git - rust.git/blob - tests/ui/rfc-2091-track-caller/error-with-invalid-abi.rs
Rollup merge of #106664 - chenyukang:yukang/fix-106597-remove-lseek, r=cuviper
[rust.git] / tests / ui / rfc-2091-track-caller / error-with-invalid-abi.rs
1 #[track_caller]
2 extern "C" fn f() {}
3 //~^^ ERROR `#[track_caller]` requires Rust ABI
4
5 extern "C" {
6     #[track_caller]
7     fn g();
8     //~^^ ERROR `#[track_caller]` requires Rust ABI
9 }
10
11 fn main() {}