fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
1.1 KiB27 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   |
10   = note: expected type `&usize`
11              found type `usize`
12
13error[E0308]: mismatched types
14  --> $DIR/issue-46756-consider-borrowing-cast-or-binexpr.rs:14:42
15   |
16LL |     light_flows_our_war_of_mocking_words(with_tears + 4);
17   |                                          ^^^^^^^^^^^^^^
18   |                                          |
19   |                                          expected &usize, found usize
20   |                                          help: consider borrowing here: `&(with_tears + 4)`
21   |
22   = note: expected type `&usize`
23              found type `usize`
24
25error: aborting due to 2 previous errors
26
27For more information about this error, try `rustc --explain E0308`.