use std::sync::Arc;

use skim::prelude::*;

fn main() {
    let (sender, receiver) = unbounded::<Arc<dyn SkimItem>>();
    for num in 1..=8 {
        sender.send(Arc::new(format!("Option {num}"))).unwrap();
    }
    drop(sender); // bug replicates even without this

    let _ = Skim::run_with(
        SkimOptions {
            multi: true,
            ..Default::default()
        },
        Some(receiver),
    );
}
