rust/tests/ui/abi/invalid-call-abi.rs
2025-06-24 22:34:30 +00:00

13 lines
247 B
Rust

// Tests the `"rustc-invalid"` ABI, which is never canonizable.
#![feature(rustc_attrs)]
const extern "rust-invalid" fn foo() {
//~^ ERROR "rust-invalid" is not a supported ABI for the current target
panic!()
}
fn main() {
foo();
}