mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
14 lines
362 B
Rust
14 lines
362 B
Rust
// Test that the "C-unwind" ABI is feature-gated, and cannot be used when the
|
|
// `c_unwind` feature gate is not used.
|
|
|
|
#![allow(ffi_unwind_calls)]
|
|
//~^ WARNING unknown lint: `ffi_unwind_calls`
|
|
//~| WARNING unknown lint: `ffi_unwind_calls`
|
|
|
|
extern "C-unwind" fn f() {}
|
|
//~^ ERROR C-unwind ABI is experimental and subject to change [E0658]
|
|
|
|
fn main() {
|
|
f();
|
|
}
|