summaryrefslogtreecommitdiffstats
path: root/vendor/wasm-bindgen/tests/must_use.rs
blob: 912e92e4bffecfda3c53cf7b0ce32f0e12d9e0b7 (plain)
1
2
3
4
5
6
7
8
9
10
//! This test validates that the generated bindings don't cause linting warnings
//! when used with structs annotated with `#[must_use]`.

#![deny(unused)]

use wasm_bindgen::prelude::*;

#[wasm_bindgen]
#[must_use]
pub struct MustUse {}