mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-28 06:38:28 +00:00
15 lines
371 B
Rust
15 lines
371 B
Rust
// Fix for #142969 where an invalid ABI in a signature still had its call ABI computed
|
|
// because CTFE tried to evaluate it, despite previous errors during AST-to-HIR lowering.
|
|
|
|
#![feature(rustc_attrs)]
|
|
|
|
const extern "rust-invalid" fn foo() {
|
|
//~^ ERROR "rust-invalid" is not a supported ABI for the current target
|
|
panic!()
|
|
}
|
|
|
|
const _: () = foo();
|
|
|
|
|
|
fn main() {}
|