fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
397 B16 linesraw
1// run-rustfix
2
3#![allow(unused)]
4
5fn light_flows_our_war_of_mocking_words(and_yet: &usize) -> usize {
6    and_yet + 1
7}
8
9fn main() {
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]
16}