Downcast on stateless state ERROR

What does this error mean and how do I fix it? Here is the code which caused the error:


                            match cell {
                                Cell::Text(text) => {
                                    <iced_core::widget::Text<'_, _, _> as iced_core::Widget<CellMessage, iced::Theme, iced_widget::Renderer>>::draw(
                                        text,
                                        tree,
                                        renderer,
                                        &theme.resolve_theme(),
                                        style,
                                        layout,
                                        cursor,
                                        viewport,
                                    );
                                }
                                Cell::Button(button) => {
                                    <iced_widget::Button<'_, _, _, _> as iced_core::Widget<CellMessage, iced::Theme, iced_widget::Renderer>>::draw(
                                        button,
                                        tree,
                                        renderer,
                                        &theme.resolve_theme(),
                                        style,
                                        layout,
                                        cursor,
                                        viewport,
                                    );
                                }
                                Cell::Container(container) => {
                                    <iced_widget::Container<'_, _, _, _> as iced_core::Widget<CellMessage, iced::Theme, iced_widget::Renderer>>::draw(
                                        container,
                                        tree,
                                        renderer,
                                        &theme.resolve_theme(),
                                        style,
                                        layout,
                                        cursor,
                                        viewport,
                                    );
                                }
                            }

Here is the full code:

Repo:

If you want to test the code out, refer to the testing demo (main.rs)

I know some of the code is suboptimal, might not follow all elm conventions and such, I know, I am planning on fixing that stuff gradually, just please don’t suggest things like restarting from the ground up, the end goal is to make a widget, iced_grid.