Skip to content

Commit

Permalink
One more comment for magic number
Browse files Browse the repository at this point in the history
  • Loading branch information
tiif committed Jan 29, 2025
1 parent 3a89da8 commit a25a4ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/fail/shims/wrong_fixed_arg_count.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit a25a4ef

Please sign in to comment.