summaryrefslogtreecommitdiffstats
path: root/tests/ui/unwind-abis/feature-gate-system-unwind.rs
blob: 26c2de4e81767754051d0d3de620776ac966c5f6 (plain)
1
2
3
4
5
6
7
8
9
// Test that the "system-unwind" ABI is feature-gated, and cannot be used when
// the `c_unwind` feature gate is not used.

extern "system-unwind" fn f() {}
//~^ ERROR system-unwind ABI is experimental and subject to change [E0658]

fn main() {
    f();
}