about summary refs log tree commit diff
path: root/tests/ui/abi/invalid-call-abi-ctfe.rs
blob: 343cc728fe3b711f3a5390f63e276b6006368b7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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() {}