Sha256: c463bee9962d936ef2aeb4051ebc5558c0b7fefe6e459f3a325482763746969f

Contents?: true

Size: 495 Bytes

Versions: 30

Compression:

Stored size: 495 Bytes

Contents

use wasm_bindgen::prelude::*;

#[wasm_bindgen]
pub struct A;

#[wasm_bindgen]
default impl A {
}

#[wasm_bindgen]
unsafe impl A {
}

#[wasm_bindgen]
impl Clone for A {
}

#[wasm_bindgen]
impl<T> A {
}

#[wasm_bindgen]
impl &'static A {
}

macro_rules! x { () => () }

#[wasm_bindgen]
impl A {
    const X: u32 = 3;
    type Y = u32;
    x!();

    // pub default fn foo() {} // TODO: compiler's pretty printer totally broken
}

#[wasm_bindgen]
impl A {
    pub const fn foo() {}
}

fn main() {}

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
wasmtime-23.0.2 ./ext/cargo-vendor/wasm-bindgen-macro-0.2.89/ui-tests/invalid-methods.rs
wasmtime-22.0.0 ./ext/cargo-vendor/wasm-bindgen-macro-0.2.89/ui-tests/invalid-methods.rs
wasmtime-21.0.1 ./ext/cargo-vendor/wasm-bindgen-macro-0.2.89/ui-tests/invalid-methods.rs
wasmtime-20.0.2 ./ext/cargo-vendor/wasm-bindgen-macro-0.2.89/ui-tests/invalid-methods.rs
wasmtime-20.0.0 ./ext/cargo-vendor/wasm-bindgen-macro-0.2.89/ui-tests/invalid-methods.rs
wasmtime-18.0.3 ./ext/cargo-vendor/wasm-bindgen-macro-0.2.89/ui-tests/invalid-methods.rs
wasmtime-17.0.1 ./ext/cargo-vendor/wasm-bindgen-macro-0.2.89/ui-tests/invalid-methods.rs
wasmtime-17.0.0 ./ext/cargo-vendor/wasm-bindgen-macro-0.2.89/ui-tests/invalid-methods.rs
wasmtime-16.0.0 ./ext/cargo-vendor/wasm-bindgen-macro-0.2.89/ui-tests/invalid-methods.rs
wasmtime-15.0.1 ./ext/cargo-vendor/wasm-bindgen-macro-0.2.89/ui-tests/invalid-methods.rs
wasmtime-15.0.0 ./ext/cargo-vendor/wasm-bindgen-macro-0.2.89/ui-tests/invalid-methods.rs
wasmtime-14.0.4 ./ext/cargo-vendor/wasm-bindgen-macro-0.2.87/ui-tests/invalid-methods.rs
wasmtime-14.0.3 ./ext/cargo-vendor/wasm-bindgen-macro-0.2.87/ui-tests/invalid-methods.rs
wasmtime-14.0.1 ./ext/cargo-vendor/wasm-bindgen-macro-0.2.87/ui-tests/invalid-methods.rs
wasmtime-14.0.0 ./ext/cargo-vendor/wasm-bindgen-macro-0.2.87/ui-tests/invalid-methods.rs
wasmtime-13.0.0 ./ext/cargo-vendor/wasm-bindgen-macro-0.2.87/ui-tests/invalid-methods.rs
wasmtime-12.0.1 ./ext/cargo-vendor/wasm-bindgen-macro-0.2.87/ui-tests/invalid-methods.rs
wasmtime-12.0.0 ./ext/cargo-vendor/wasm-bindgen-macro-0.2.87/ui-tests/invalid-methods.rs
wasmtime-11.0.0 ./ext/cargo-vendor/wasm-bindgen-macro-0.2.87/ui-tests/invalid-methods.rs
wasmtime-10.0.1 ./ext/cargo-vendor/wasm-bindgen-macro-0.2.87/ui-tests/invalid-methods.rs