]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/enum-discr-type-err.stderr
Rollup merge of #64603 - gilescope:unused-lifetime-warning, r=matthewjasper
[rust.git] / src / test / ui / consts / enum-discr-type-err.stderr
1 error[E0308]: mismatched types
2   --> $DIR/enum-discr-type-err.rs:18:21
3    |
4 LL |               $( $v = $s::V, )*
5    |                       ^^^^^ expected isize, found i32
6 ...
7 LL | / mac! {
8 LL | |     A = F,
9 LL | |     B = T,
10 LL | | }
11    | |_- in this macro invocation
12 help: you can convert an `i32` to `isize` and panic if the converted value wouldn't fit
13    |
14 LL |             $( $v = $s::V.try_into().unwrap(), )*
15    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0308`.