]>
Commit | Line | Data |
---|---|---|
8faf50e0 | 1 | error[E0308]: mismatched types |
0731742a | 2 | --> $DIR/issue-31910.rs:2:9 |
8faf50e0 XL |
3 | | |
4 | LL | X = Trait::Number, | |
5 | | ^^^^^^^^^^^^^ expected isize, found i32 | |
e74abb32 | 6 | | |
48663c56 XL |
7 | help: you can convert an `i32` to `isize` and panic if the converted value wouldn't fit |
8 | | | |
9 | LL | X = Trait::Number.try_into().unwrap(), | |
10 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
8faf50e0 XL |
11 | |
12 | error: aborting due to previous error | |
13 | ||
14 | For more information about this error, try `rustc --explain E0308`. |