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