mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-12 12:31:22 +00:00
Remove use_extern_macros
features
This has now been stabilized!
This commit is contained in:
@ -1,61 +1,61 @@
|
||||
error: #[wasm_bindgen] default impls are not supported
|
||||
--> $DIR/invalid-methods.rs:11:1
|
||||
|
|
||||
11 | default impl A {
|
||||
| ^^^^^^^
|
||||
--> $DIR/invalid-methods.rs:9:1
|
||||
|
|
||||
9 | default impl A {
|
||||
| ^^^^^^^
|
||||
|
||||
error: #[wasm_bindgen] unsafe impls are not supported
|
||||
--> $DIR/invalid-methods.rs:15:1
|
||||
--> $DIR/invalid-methods.rs:13:1
|
||||
|
|
||||
15 | unsafe impl A {
|
||||
13 | unsafe impl A {
|
||||
| ^^^^^^
|
||||
|
||||
error: #[wasm_bindgen] trait impls are not supported
|
||||
--> $DIR/invalid-methods.rs:19:6
|
||||
--> $DIR/invalid-methods.rs:17:6
|
||||
|
|
||||
19 | impl Clone for A {
|
||||
17 | impl Clone for A {
|
||||
| ^^^^^
|
||||
|
||||
error: #[wasm_bindgen] generic impls aren't supported
|
||||
--> $DIR/invalid-methods.rs:23:5
|
||||
--> $DIR/invalid-methods.rs:21:5
|
||||
|
|
||||
23 | impl<T> A {
|
||||
21 | impl<T> A {
|
||||
| ^^^
|
||||
|
||||
error: unsupported self type in #[wasm_bindgen] impl
|
||||
--> $DIR/invalid-methods.rs:27:6
|
||||
--> $DIR/invalid-methods.rs:25:6
|
||||
|
|
||||
27 | impl &'static A {
|
||||
25 | impl &'static A {
|
||||
| ^^^^^^^^^^
|
||||
|
||||
error: const definitions aren't supported with #[wasm_bindgen]
|
||||
--> $DIR/invalid-methods.rs:34:5
|
||||
--> $DIR/invalid-methods.rs:32:5
|
||||
|
|
||||
34 | const X: u32 = 3;
|
||||
32 | const X: u32 = 3;
|
||||
| ^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: type definitions in impls aren't supported with #[wasm_bindgen]
|
||||
--> $DIR/invalid-methods.rs:35:5
|
||||
--> $DIR/invalid-methods.rs:33:5
|
||||
|
|
||||
35 | type Y = u32;
|
||||
33 | type Y = u32;
|
||||
| ^^^^^^^^^^^^^
|
||||
|
||||
error: macros in impls aren't supported
|
||||
--> $DIR/invalid-methods.rs:36:5
|
||||
--> $DIR/invalid-methods.rs:34:5
|
||||
|
|
||||
36 | x!();
|
||||
34 | x!();
|
||||
| ^^^^^
|
||||
|
||||
error: can only #[wasm_bindgen] non-const functions
|
||||
--> $DIR/invalid-methods.rs:41:9
|
||||
--> $DIR/invalid-methods.rs:39:9
|
||||
|
|
||||
41 | pub const fn foo() {}
|
||||
39 | pub const fn foo() {}
|
||||
| ^^^^^
|
||||
|
||||
error: can only bindgen safe functions
|
||||
--> $DIR/invalid-methods.rs:42:9
|
||||
--> $DIR/invalid-methods.rs:40:9
|
||||
|
|
||||
42 | pub unsafe fn foo() {}
|
||||
40 | pub unsafe fn foo() {}
|
||||
| ^^^^^^
|
||||
|
||||
error: aborting due to 10 previous errors
|
||||
|
Reference in New Issue
Block a user