]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-rust_cold_cc.rs
:arrow_up: rust-analyzer
[rust.git] / src / test / ui / feature-gates / feature-gate-rust_cold_cc.rs
1 #![crate_type = "lib"]
2
3 extern "rust-cold" fn fu() {} //~ ERROR rust-cold is experimental
4
5 trait T {
6     extern "rust-cold" fn mu(); //~ ERROR rust-cold is experimental
7     extern "rust-cold" fn dmu() {} //~ ERROR rust-cold is experimental
8 }
9
10 struct S;
11 impl T for S {
12     extern "rust-cold" fn mu() {} //~ ERROR rust-cold is experimental
13 }
14
15 impl S {
16     extern "rust-cold" fn imu() {} //~ ERROR rust-cold is experimental
17 }
18
19 type TAU = extern "rust-cold" fn(); //~ ERROR rust-cold is experimental
20
21 extern "rust-cold" {} //~ ERROR rust-cold is experimental