rust/tests/compile-fail/check_arg_count.rs

8 lines
174 B
Rust
Raw Normal View History

2020-04-30 17:30:21 -04:00
#![feature(core_intrinsics)]
use std::intrinsics;
fn main() {
unsafe { intrinsics::forget(); } //~ ERROR this function takes 1 argument but 0 arguments were supplied
}