]> git.proxmox.com Git - rustc.git/blob - tests/ui/unwind-abis/feature-gate-c-unwind.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / 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 #![allow(ffi_unwind_calls)]
5 //~^ WARNING unknown lint: `ffi_unwind_calls`
6 //~| WARNING unknown lint: `ffi_unwind_calls`
7
8 extern "C-unwind" fn f() {}
9 //~^ ERROR C-unwind ABI is experimental and subject to change [E0658]
10
11 fn main() {
12 f();
13 }