Add a test for check_arg_count.
This commit is contained in:
parent
78f329513a
commit
46aaab30fe
7
tests/compile-fail/check_arg_count.rs
Normal file
7
tests/compile-fail/check_arg_count.rs
Normal 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
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user