mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-28 05:34:45 +00:00
13 lines
247 B
Rust
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();
|
|
}
|