summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfcs/rfc-2091-track-caller/error-with-invalid-abi.rs
blob: 074e1ceb791cef1ebc67632211a898edcf330660 (plain)
1
2
3
4
5
6
7
8
9
10
11
#[track_caller]
extern "C" fn f() {}
//~^^ ERROR `#[track_caller]` requires Rust ABI

extern "C" {
    #[track_caller]
    fn g();
    //~^^ ERROR `#[track_caller]` requires Rust ABI
}

fn main() {}