mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-15 04:23:12 +03:00
1e1cab6202
* 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 {}
|