summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-46756-consider-borrowing-cast-or-binexpr.rs
blob: c8494612ca340840b0669646c65756c438ced391 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// run-rustfix

#![allow(unused)]

fn light_flows_our_war_of_mocking_words(and_yet: &usize) -> usize {
    and_yet + 1
}

fn main() {
    let behold: isize = 2;
    let with_tears: usize = 3;
    light_flows_our_war_of_mocking_words(behold as usize);
    //~^ ERROR mismatched types [E0308]
    light_flows_our_war_of_mocking_words(with_tears + 4);
    //~^ ERROR mismatched types [E0308]
}