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