mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2025-01-07 13:43:03 +03:00
4cc730fc41
This migrates our UI tests to the recently published `trybuild` crate which should hopefully be a bit more robust than `compiletest` over time!
12 lines
162 B
Rust
12 lines
162 B
Rust
use wasm_bindgen::prelude::*;
|
|
|
|
#[wasm_bindgen]
|
|
extern "C" {
|
|
type Foo;
|
|
|
|
#[wasm_bindgen(method, structural, final)]
|
|
fn bar(this: &Foo);
|
|
}
|
|
|
|
fn main() {}
|