fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.0 KiB34 linesraw
1error[E0423]: expected value, found macro `file`
2  --> $DIR/issue-109396.rs:5:13
3   |
4LL |             file.as_raw_fd(),
5   |             ^^^^ not a value
6
7error[E0061]: this function takes 0 arguments but 4 arguments were supplied
8  --> $DIR/issue-109396.rs:3:25
9   |
10LL |         let mut mutex = std::mem::zeroed(
11   |                         ^^^^^^^^^^^^^^^^
12LL |
13LL |             file.as_raw_fd(),
14   |             ---------------- unexpected argument
15LL |
16LL |             0,
17   |             - unexpected argument of type `{integer}`
18LL |             0,
19   |             - unexpected argument of type `{integer}`
20LL |             0,
21   |             - unexpected argument of type `{integer}`
22   |
23note: function defined here
24  --> $SRC_DIR/core/src/mem/mod.rs:LL:COL
25help: remove the extra arguments
26   |
27LL -             file.as_raw_fd(),
28LL +             );
29   |
30
31error: aborting due to 2 previous errors
32
33Some errors have detailed explanations: E0061, E0423.
34For more information about an error, try `rustc --explain E0061`.