]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-8761.stderr
Rollup merge of #58975 - jtdowney:iter_arith_traits_option, r=dtolnay
[rust.git] / src / test / ui / issues / issue-8761.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-8761.rs:2:9
3    |
4 LL |     A = 1i64,
5    |         ^^^^ expected isize, found i64
6 help: change the type of the numeric literal from `i64` to `isize`
7    |
8 LL |     A = 1isize,
9    |         ^^^^^^
10
11 error[E0308]: mismatched types
12   --> $DIR/issue-8761.rs:5:9
13    |
14 LL |     B = 2u8
15    |         ^^^ expected isize, found u8
16 help: change the type of the numeric literal from `u8` to `isize`
17    |
18 LL |     B = 2isize
19    |         ^^^^^^
20
21 error: aborting due to 2 previous errors
22
23 For more information about this error, try `rustc --explain E0308`.