We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ba467e commit ab9e200Copy full SHA for ab9e200
crates/web-sys/tests/wasm/main.rs
@@ -7,7 +7,6 @@ extern crate wasm_bindgen_futures;
7
extern crate wasm_bindgen_test;
8
extern crate web_sys;
9
10
-use wasm_bindgen::{JsValue, JsCast};
11
use wasm_bindgen_test::*;
12
13
wasm_bindgen_test_configure!(run_in_browser);
@@ -60,8 +59,10 @@ pub mod indexeddb;
60
59
61
#[wasm_bindgen_test]
62
fn deref_works() {
63
- let x = JsValue::from(3);
64
- let x = x.unchecked_into::<web_sys::XmlHttpRequestUpload>();
65
- let y: &web_sys::XmlHttpRequestEventTarget = &x;
66
- drop(y);
+ fn _check(a: &web_sys::XmlHttpRequestUpload) {
+ let _x: &web_sys::XmlHttpRequestEventTarget = a;
+ let _x: &web_sys::EventTarget = a;
+ let _x: &js_sys::Object = a;
+ let _x: &wasm_bindgen::JsValue = a;
67
+ }
68
}
0 commit comments