mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +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();
|
|
}
|