mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-04-24 21:52:13 +00:00
* Add a test that fails to compile if generated code triggers unused lint warning. * Fix formatting.
11 lines
238 B
Rust
11 lines
238 B
Rust
//! 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 {}
|