fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

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