]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-8761.stderr
Require Drop impls to have the same constness on its bounds as the bounds on the...
[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    |
7 help: change the type of the numeric literal from `i64` to `isize`
8    |
9 LL |     A = 1isize,
10    |          ~~~~~
11
12 error[E0308]: mismatched types
13   --> $DIR/issue-8761.rs:5:9
14    |
15 LL |     B = 2u8
16    |         ^^^ expected `isize`, found `u8`
17    |
18 help: change the type of the numeric literal from `u8` to `isize`
19    |
20 LL |     B = 2isize
21    |          ~~~~~
22
23 error: aborting due to 2 previous errors
24
25 For more information about this error, try `rustc --explain E0308`.