We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 047b420 commit 1e1cab6Copy full SHA for 1e1cab6
tests/must_use.rs
@@ -0,0 +1,10 @@
1
+//! This test validates that the generated bindings don't cause linting warnings
2
+//! when used with structs annotated with `#[must_use]`.
3
+
4
+#![deny(unused)]
5
6
+use wasm_bindgen::prelude::*;
7
8
+#[wasm_bindgen]
9
+#[must_use]
10
+pub struct MustUse {}
0 commit comments