summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/extern_not_explicit.rs
blob: b55b64d05b34eae2c99cc1cb5ad71c34ab190eed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// rustfmt-force_explicit_abi: false

extern {
    fn some_fn() -> ();
}

extern fn sup() {}

type funky_func = extern fn(
    unsafe extern "rust-call" fn(
        *const JSJitInfo,
        *mut JSContext,
        HandleObject,
        *mut libc::c_void,
        u32,
        *mut JSVal,
    ) -> u8,
);