1 // Take a look at the license at the top of the repository in the LICENSE file. 2 3 use crate::prelude::*; 4 5 #[test] check_callback()6fn check_callback() { 7 let c = crate::Cancellable::new(); 8 c.connect_cancelled(|_| {}); 9 c.cancel(); // if it doesn't crash at this point, then we're good to go! 10 } 11