mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-12 20:41:24 +00:00
Rename host_binding
to final
This commit is contained in:
@ -6,6 +6,6 @@ use wasm_bindgen::prelude::*;
|
||||
extern "C" {
|
||||
type Foo;
|
||||
|
||||
#[wasm_bindgen(method, structural, host_binding)]
|
||||
#[wasm_bindgen(method, structural, final)]
|
||||
fn bar(this: &Foo);
|
||||
}
|
8
crates/macro/ui-tests/structural-and-final.stderr
Normal file
8
crates/macro/ui-tests/structural-and-final.stderr
Normal file
@ -0,0 +1,8 @@
|
||||
error: cannot specify both `structural` and `final`
|
||||
--> $DIR/structural-and-final.rs:9:40
|
||||
|
|
||||
9 | #[wasm_bindgen(method, structural, final)]
|
||||
| ^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
@ -1,8 +0,0 @@
|
||||
error: cannot specify both `structural` and `host_binding`
|
||||
--> $DIR/structural-and-host-binding.rs:9:40
|
||||
|
|
||||
9 | #[wasm_bindgen(method, structural, host_binding)]
|
||||
| ^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
Reference in New Issue
Block a user