wasm-bindgen/crates/macro/ui-tests/bad-signatures.rs
Alex Crichton 4a78769349
Convert some more macro panics to diagnostics (#611)
This should hopefully be the last of the manually written diagnostics!
2018-08-02 11:12:50 -05:00

16 lines
211 B
Rust

#![feature(use_extern_macros)]
extern crate wasm_bindgen;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
pub fn foo() -> &u32 {}
#[wasm_bindgen]
extern "C" {
fn foo(Foo(x): Foo);
fn foo() -> &u32;
}