1 error[E0308]: mismatched types
2 --> $DIR/issue-46756-consider-borrowing-cast-or-binexpr.rs:12:42
4 LL | light_flows_our_war_of_mocking_words(behold as usize);
5 | ------------------------------------ ^^^^^^^^^^^^^^^
7 | | expected `&usize`, found `usize`
8 | | help: consider borrowing here: `&(behold as usize)`
9 | arguments to this function are incorrect
11 note: function defined here
12 --> $DIR/issue-46756-consider-borrowing-cast-or-binexpr.rs:5:4
14 LL | fn light_flows_our_war_of_mocking_words(and_yet: &usize) -> usize {
15 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ---------------
17 error[E0308]: mismatched types
18 --> $DIR/issue-46756-consider-borrowing-cast-or-binexpr.rs:14:42
20 LL | light_flows_our_war_of_mocking_words(with_tears + 4);
21 | ------------------------------------ ^^^^^^^^^^^^^^
23 | | expected `&usize`, found `usize`
24 | | help: consider borrowing here: `&(with_tears + 4)`
25 | arguments to this function are incorrect
27 note: function defined here
28 --> $DIR/issue-46756-consider-borrowing-cast-or-binexpr.rs:5:4
30 LL | fn light_flows_our_war_of_mocking_words(and_yet: &usize) -> usize {
31 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ---------------
33 error: aborting due to 2 previous errors
35 For more information about this error, try `rustc --explain E0308`.