slint-ui / slint

Slint is a declarative GUI toolkit to build native user interfaces for Rust, C++, or JavaScript apps.
https://slint.dev
Other
17.64k stars 607 forks source link

Error when making a `for` over an empty array #6767

Closed ogoffart closed 1 week ago

ogoffart commented 1 week ago

Instead of panicking.

Attempt to fix it in #6765 didn't work for C++. Code generation might be hard for C++, so I thought it's better to error out.

Fix #6760