]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-46756-consider-borrowing-cast-or-binexpr.fixed
Update unsuspicious file list
[rustc.git] / src / test / ui / issues / issue-46756-consider-borrowing-cast-or-binexpr.fixed
CommitLineData
83c7162d 1// run-rustfix
9e0c209e 2
83c7162d 3#![allow(unused)]
9e0c209e 4
83c7162d
XL
5fn light_flows_our_war_of_mocking_words(and_yet: &usize) -> usize {
6 and_yet + 1
9e0c209e 7}
1a4d82fc 8
7453a54e 9fn main() {
83c7162d
XL
10 let behold: isize = 2;
11 let with_tears: usize = 3;
12 light_flows_our_war_of_mocking_words(&(behold as usize));
13 //~^ ERROR mismatched types [E0308]
14 light_flows_our_war_of_mocking_words(&(with_tears + 4));
15 //~^ ERROR mismatched types [E0308]
223e47cc 16}