With Cargo 1.58.0-nightly (2e2a16e98 2021-11-08), the error message:
error[E0282]: type annotations needed
--> native-windows-gui\src\layouts\grid_layout.rs:461:55
|
454 | let x = m_left + (sp + (sp2 * item.col)) + &columns[0..(item.col as usize)].iter().sum();
| - consider giving `x` a type
...
461 | wh::set_window_position(item.control, x as i32, y as i32);
| ^ cannot infer type
|
= note: type must be known at this point
For more information about this error, try `rustc --explain E0282`.
With Cargo 1.58.0-nightly (2e2a16e98 2021-11-08), the error message: