wasm-bindgen/crates/macro/ui-tests/invalid-attr.rs
2018-08-16 23:25:57 -07:00

18 lines
235 B
Rust

#![feature(use_extern_macros)]
extern crate wasm_bindgen;
use wasm_bindgen::prelude::*;
#[wasm_bindgen(x)]
pub fn foo() {}
#[wasm_bindgen]
extern "C" {
#[wasm_bindgen(y)]
fn bar();
#[wasm_bindgen { }]
fn bar();
}