11 lines
194 B
Rust
11 lines
194 B
Rust
|
fn main() {
|
||
|
extern "C" {
|
||
|
fn abort(_: i32) -> !;
|
||
|
}
|
||
|
|
||
|
unsafe {
|
||
|
abort(1);
|
||
|
//~^ ERROR Undefined Behavior: incorrect number of arguments: got 1, expected 0
|
||
|
}
|
||
|
}
|