fork/rust

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

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
1017 B21 linesraw
1error[E0308]: mismatched types
2  --> $DIR/issue-46756-consider-borrowing-cast-or-binexpr.rs:12:42
3   |
4LL |     light_flows_our_war_of_mocking_words(behold as usize);
5   |                                          ^^^^^^^^^^^^^^^
6   |                                          |
7   |                                          expected `&usize`, found `usize`
8   |                                          help: consider borrowing here: `&(behold as usize)`
9
10error[E0308]: mismatched types
11  --> $DIR/issue-46756-consider-borrowing-cast-or-binexpr.rs:14:42
12   |
13LL |     light_flows_our_war_of_mocking_words(with_tears + 4);
14   |                                          ^^^^^^^^^^^^^^
15   |                                          |
16   |                                          expected `&usize`, found `usize`
17   |                                          help: consider borrowing here: `&(with_tears + 4)`
18
19error: aborting due to 2 previous errors
20
21For more information about this error, try `rustc --explain E0308`.