Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (12 sloc) 338 Bytes
// build-pass (FIXME(62277): could be check-pass?)
use std::cell::RefCell;
use std::rc::Rc;
pub struct Callbacks {
callbacks: Vec<Rc<RefCell<dyn FnMut(i32)>>>,
impl Callbacks {
pub fn register<F: FnMut(i32)+'static>(&mut self, callback: F) {
fn main() {}
You can’t perform that action at this time.