We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
dyn
1 parent c21c85a commit 6252c7aCopy full SHA for 6252c7a
tests/headless/main.rs
@@ -54,8 +54,8 @@ pub mod strings;
54
55
#[wasm_bindgen_test]
56
fn closures_work() {
57
- let x = Closure::wrap(Box::new(|| {}) as Box<FnMut()>);
+ let x = Closure::wrap(Box::new(|| {}) as Box<dyn FnMut()>);
58
drop(x);
59
60
x.forget();
61
}
tests/headless/strings.rs
@@ -3,7 +3,7 @@ use wasm_bindgen_test::*;
3
4
#[wasm_bindgen(module = "/tests/headless/strings.js")]
5
extern "C" {
6
- fn test_string_roundtrip(c: &Closure<Fn(String) -> String>);
+ fn test_string_roundtrip(c: &Closure<dyn Fn(String) -> String>);
7
8
9
0 commit comments