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