rust/tests/compile-fail/check_arg_count.rs
2020-05-04 13:51:23 -04:00

8 lines
174 B
Rust

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