blob: 343cc728fe3b711f3a5390f63e276b6006368b7b [file] [log] [blame]
// 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() {}