]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-46756-consider-borrowing-cast-or-binexpr.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / issues / issue-46756-consider-borrowing-cast-or-binexpr.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-46756-consider-borrowing-cast-or-binexpr.rs:22:42
3    |
4 LL |     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
13 error[E0308]: mismatched types
14   --> $DIR/issue-46756-consider-borrowing-cast-or-binexpr.rs:24:42
15    |
16 LL |     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
25 error: aborting due to 2 previous errors
26
27 For more information about this error, try `rustc --explain E0308`.