1 error[E0271]: expected `[closure@fallback-closure-wrap.rs:18:40]` to be a closure that returns `()`, but it returns `!`
2 --> $DIR/fallback-closure-wrap.rs:18:31
4 LL | let error = Closure::wrap(Box::new(move || {
5 | _______________________________^
7 LL | | panic!("Can't connect to server.");
8 LL | | }) as Box<dyn FnMut()>);
9 | |______^ expected `()`, found `!`
11 = note: expected unit type `()`
13 = note: required for the cast from `[closure@$DIR/fallback-closure-wrap.rs:18:40: 18:47]` to the object type `dyn FnMut()`
15 error: aborting due to previous error
17 For more information about this error, try `rustc --explain E0271`.