]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unwind-abis/feature-gate-c-unwind.rs
Auto merge of #82958 - camelid:res-docs, r=petrochenkov
[rust.git] / src / test / ui / unwind-abis / feature-gate-c-unwind.rs
1 // Test that the "C-unwind" ABI is feature-gated, and cannot be used when the
2 // `c_unwind` feature gate is not used.
3
4 extern "C-unwind" fn f() {}
5 //~^ ERROR C-unwind ABI is experimental and subject to change [E0658]
6
7 fn main() {
8     f();
9 }