icedwright 0.0.1

The icedwright test harness: run an iced 0.14 program headlessly on virtual time
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
error[E0631]: type mismatch in closure arguments
  --> tests/compile_fail/mount_wrong_message.rs:23:45
   |
23 |     let _mounted = Mount::new(0_u32, view)?.on_message(|count: &mut u32, _: &AppMessage| {
   |                                             ^^^^^^^^^^ --------------------------------- found signature defined here
   |                                             |
   |                                             expected due to this
   |
   = note: expected closure signature `for<'a, 'b> fn(&'a mut u32, &'b Bump) -> _`
              found closure signature `fn(&mut u32, &AppMessage) -> _`
note: required by a bound in `Mount::<Props, M>::on_message`
  --> src/testing/mount.rs
   |
   |     pub fn on_message(self, apply: impl Fn(&mut Props, &M) + 'static) -> Self {
   |                                         ^^^^^^^^^^^^^^^^^^ required by this bound in `Mount::<Props, M>::on_message`