Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaskrgr committed Sep 5, 2021
1 parent 37e41c8 commit a731ef9
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions ices/88643.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

rustc --crate-type lib - << EOF
use std::collections::HashMap;
struct Widget {}
pub trait WidgetExt {
fn set_callback<F: FnMut(&mut Self) + 'static>(&mut self, cb: F)
where
Self: Sized;
}
static CALLBACKS: HashMap<*const dyn WidgetExt, dyn FnMut(&mut _) + 'static> = HashMap::new();
pub fn main() {}
EOF

0 comments on commit a731ef9

Please sign in to comment.