mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 04:22:36 +00:00
11 lines
218 B
Rust
11 lines
218 B
Rust
const extern "C" fn foo() {
|
|
panic!() //~ ERROR evaluation of constant value failed
|
|
}
|
|
|
|
const _: () = foo();
|
|
// Ensure that the CTFE engine handles calls to `extern "C"` aborting gracefully
|
|
|
|
fn main() {
|
|
foo();
|
|
}
|