]> git.lizzy.rs Git - rust.git/blob - tests/fail/fs/unix_open_too_many_args.stderr
Auto merge of #2178 - RalfJung:double-ref, r=RalfJung
[rust.git] / tests / fail / fs / unix_open_too_many_args.stderr
1 error: Undefined Behavior: incorrect number of arguments for `open`: got 4, expected 2 or 3
2   --> $DIR/unix_open_too_many_args.rs:15:24
3    |
4 LL |     let _fd = unsafe { libc::open(name_ptr, libc::O_RDONLY, 0, 0) }; //~ ERROR Undefined Behavior: incorrect number of arguments for `ope...
5    |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ incorrect number of arguments for `open`: got 4, expected 2 or 3
6    |
7    = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
8    = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
9            
10    = note: inside `test_open_too_many_args` at $DIR/unix_open_too_many_args.rs:15:24
11 note: inside `main` at $DIR/unix_open_too_many_args.rs:9:5
12   --> $DIR/unix_open_too_many_args.rs:9:5
13    |
14 LL |     test_open_too_many_args();
15    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
16
17 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
18
19 error: aborting due to previous error
20