fork/rust

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

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

master
524 B18 linesraw
1error[E0308]: mismatched types
2  --> $DIR/issue-102206.rs:6:27
3   |
4LL |     std::mem::size_of_val(foo());
5   |     --------------------- ^^^^^ expected `&_`, found future
6   |     |
7   |     arguments to this function are incorrect
8   |
9note: function defined here
10  --> $SRC_DIR/core/src/mem/mod.rs:LL:COL
11help: consider borrowing here
12   |
13LL |     std::mem::size_of_val(&foo());
14   |                           +
15
16error: aborting due to previous error
17
18For more information about this error, try `rustc --explain E0308`.