]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-46756-consider-borrowing-cast-or-binexpr.stderr
Remove E0308 note when primary label has all info
[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:12: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 error[E0308]: mismatched types
11   --> $DIR/issue-46756-consider-borrowing-cast-or-binexpr.rs:14:42
12    |
13 LL |     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
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0308`.