1
0
mirror of https://github.com/fluencelabs/wasm-bindgen synced 2025-03-17 18:50:51 +00:00
wasm-bindgen/crates/macro/ui-tests/traits-not-implemented.rs
Alex Crichton 2cbb8b8a69 Improve diagnostics with missing trait implementations
Rejigger a few spans, work around an odd rustc issue, and hopefully
produce higher quality error messages!

Closes 
2019-05-20 10:49:36 -07:00

12 lines
129 B
Rust

use wasm_bindgen::prelude::*;
struct A;
#[wasm_bindgen]
extern "C" {
#[wasm_bindgen]
pub fn foo(a: A);
}
fn main() {}