From a25a4ef3a9b7689340b90288dbe8dfdde5c741a9 Mon Sep 17 00:00:00 2001 From: tiif Date: Thu, 30 Jan 2025 00:57:17 +0800 Subject: [PATCH] One more comment for magic number --- tests/fail/shims/wrong_fixed_arg_count.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/fail/shims/wrong_fixed_arg_count.rs b/tests/fail/shims/wrong_fixed_arg_count.rs index d4038f52ab..e9b371d016 100644 --- a/tests/fail/shims/wrong_fixed_arg_count.rs +++ b/tests/fail/shims/wrong_fixed_arg_count.rs @@ -9,6 +9,6 @@ extern "C" { fn main() { let c_path = CString::new(OsStr::new("./text").as_bytes()).expect("CString::new failed"); - let _fd = unsafe { open(c_path.as_ptr(), 2) }; + let _fd = unsafe { open(c_path.as_ptr(), /* value does not matter */ 0) }; //~^ ERROR: incorrect number of fixed arguments for variadic function }