wasm-bindgen/crates/macro/ui-tests/unused-attributes.rs
Alex Crichton c8a352189b Assert all attributes are used by default
This commit implements a system that will assert that all
`#[wasm_bindgen]` attributes are actually used during compilation. This
should help ensure that we don't sneak in stray attributes that don't
actually end up having any meaning, and hopefully make it a bit easier
to learn `#[wasm_bindgen]`!
2018-11-28 11:42:48 -08:00

12 lines
167 B
Rust

extern crate wasm_bindgen;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
impl A {
#[wasm_bindgen(method)]
#[wasm_bindgen(method)]
pub fn foo() {
}
}