Skip to content

Commit

Permalink
comment for magic number
Browse files Browse the repository at this point in the history
Co-authored-by: Ralf Jung <[email protected]>
  • Loading branch information
tiif and RalfJung authored Jan 29, 2025
1 parent f12b2c3 commit ffc5b62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/fail/shims/non_vararg_signature_mismatch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,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: calling a variadic function with a non-variadic caller-side signature
}

0 comments on commit ffc5b62

Please sign in to comment.