We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d3dff2 commit f46d197Copy full SHA for f46d197
tests/compile-fail/check_arg_count.rs
@@ -4,4 +4,5 @@ use std::intrinsics;
4
5
fn main() {
6
unsafe { intrinsics::forget(); } //~ ERROR this function takes 1 argument but 0 arguments were supplied
7
+ unsafe { intrinsics::forget(1, 2); } //~ ERROR this function takes 1 argument but 2 arguments were supplied
8
}
0 commit comments