2018-07-15 21:11:54 +00:00
|
|
|
error[E0308]: mismatched types
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-8761.rs:2:9
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
|
LL | A = 1i64,
|
|
|
|
| ^^^^ expected isize, found i64
|
2019-10-24 05:20:58 +00:00
|
|
|
|
|
2019-04-21 22:44:23 +00:00
|
|
|
help: change the type of the numeric literal from `i64` to `isize`
|
|
|
|
|
|
|
|
|
LL | A = 1isize,
|
|
|
|
| ^^^^^^
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-8761.rs:5:9
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
|
LL | B = 2u8
|
|
|
|
| ^^^ expected isize, found u8
|
2019-10-24 05:20:58 +00:00
|
|
|
|
|
2019-04-21 22:44:23 +00:00
|
|
|
help: change the type of the numeric literal from `u8` to `isize`
|
|
|
|
|
|
|
|
|
LL | B = 2isize
|
|
|
|
| ^^^^^^
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|