summaryrefslogtreecommitdiffstats
path: root/vendor/wasm-bindgen-macro/ui-tests/invalid-attr.rs
blob: 188a1c8331eae11905f9dbc6aab558f429ccbc09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use wasm_bindgen::prelude::*;

#[wasm_bindgen(x)]
pub fn foo() {}

#[wasm_bindgen]
extern "C" {
    #[wasm_bindgen(y)]
    fn bar();

    #[wasm_bindgen {  }]
    fn bar();
}

fn main() {}