Add a test for check_arg_count.

This commit is contained in:
Chase Albert 2020-04-30 17:30:21 -04:00
parent 78f329513a
commit 46aaab30fe

View File

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