about summary refs log tree commit diff
path: root/tests/ui/feature-gates/feature-gate-rust_cold_cc.rs
blob: 4f47eb55b395fafa120c508ddccf8bf96c58ef89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#![crate_type = "lib"]

extern "rust-cold" fn fu() {} //~ ERROR "rust-cold" ABI is experimental

trait T {
    extern "rust-cold" fn mu(); //~ ERROR "rust-cold" ABI is experimental
    extern "rust-cold" fn dmu() {} //~ ERROR "rust-cold" ABI is experimental
}

struct S;
impl T for S {
    extern "rust-cold" fn mu() {} //~ ERROR "rust-cold" ABI is experimental
}

impl S {
    extern "rust-cold" fn imu() {} //~ ERROR "rust-cold" ABI is experimental
}

type TAU = extern "rust-cold" fn(); //~ ERROR "rust-cold" ABI is experimental

extern "rust-cold" {} //~ ERROR "rust-cold" ABI is experimental