fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
588 B23 linesraw
1error[E0308]: mismatched types
2  --> $DIR/issue-8761.rs:2:9
3   |
4LL |     A = 1i64,
5   |         ^^^^ expected isize, found i64
6help: change the type of the numeric literal from `i64` to `isize`
7   |
8LL |     A = 1isize,
9   |         ^^^^^^
10
11error[E0308]: mismatched types
12  --> $DIR/issue-8761.rs:5:9
13   |
14LL |     B = 2u8
15   |         ^^^ expected isize, found u8
16help: change the type of the numeric literal from `u8` to `isize`
17   |
18LL |     B = 2isize
19   |         ^^^^^^
20
21error: aborting due to 2 previous errors
22
23For more information about this error, try `rustc --explain E0308`.