mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-24 18:43:33 +03:00
d4297ad2d3
This has now been stabilized!
93 lines
2.1 KiB
Plaintext
93 lines
2.1 KiB
Plaintext
error: it is currently not sound to use lifetimes in function signatures
|
|
--> $DIR/invalid-imports.rs:9:16
|
|
|
|
|
9 | fn f() -> &'static u32;
|
|
| ^^^^^^^
|
|
|
|
error: imported methods must have at least one argument
|
|
--> $DIR/invalid-imports.rs:12:5
|
|
|
|
|
12 | fn f1();
|
|
| ^^^^^^^^
|
|
|
|
error: first argument of method must be a shared reference
|
|
--> $DIR/invalid-imports.rs:14:14
|
|
|
|
|
14 | fn f2(x: u32);
|
|
| ^^^
|
|
|
|
error: first argument of method must be a path
|
|
--> $DIR/invalid-imports.rs:16:14
|
|
|
|
|
16 | fn f3(x: &&u32);
|
|
| ^^^^^
|
|
|
|
error: multi-segment paths are not supported yet
|
|
--> $DIR/invalid-imports.rs:18:15
|
|
|
|
|
18 | fn f4(x: &foo::Bar);
|
|
| ^^^^^^^^
|
|
|
|
error: global paths are not supported yet
|
|
--> $DIR/invalid-imports.rs:20:15
|
|
|
|
|
20 | fn f4(x: &::Bar);
|
|
| ^^^^^
|
|
|
|
error: paths with type parameters are not supported yet
|
|
--> $DIR/invalid-imports.rs:22:15
|
|
|
|
|
22 | fn f4(x: &Bar<T>);
|
|
| ^^^^^^
|
|
|
|
error: paths with type parameters are not supported yet
|
|
--> $DIR/invalid-imports.rs:24:15
|
|
|
|
|
24 | fn f4(x: &Fn(T));
|
|
| ^^^^^
|
|
|
|
error: constructor returns must be bare types
|
|
--> $DIR/invalid-imports.rs:27:5
|
|
|
|
|
27 | fn f();
|
|
| ^^^^^^^
|
|
|
|
error: global paths are not supported yet
|
|
--> $DIR/invalid-imports.rs:29:15
|
|
|
|
|
29 | fn f() -> ::Bar;
|
|
| ^^^^^
|
|
|
|
error: return value of constructor must be a bare path
|
|
--> $DIR/invalid-imports.rs:31:5
|
|
|
|
|
31 | fn f() -> &Bar;
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
error: must be Result<...>
|
|
--> $DIR/invalid-imports.rs:34:15
|
|
|
|
|
34 | fn f() -> u32;
|
|
| ^^^
|
|
|
|
error: must be Result<...>
|
|
--> $DIR/invalid-imports.rs:36:15
|
|
|
|
|
36 | fn f() -> &u32;
|
|
| ^^^^
|
|
|
|
error: must have at least one generic parameter
|
|
--> $DIR/invalid-imports.rs:38:15
|
|
|
|
|
38 | fn f() -> Result<>;
|
|
| ^^^^^^^^
|
|
|
|
error: it is currently not sound to use lifetimes in function signatures
|
|
--> $DIR/invalid-imports.rs:40:22
|
|
|
|
|
40 | fn f() -> Result<'a>;
|
|
| ^^
|
|
|
|
error: aborting due to 15 previous errors
|
|
|