You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ rustc --crate-type lib ./js.rs
error[E0412]: type name `root::JS::JSWhyMagic` is undefined or not in scope
--> ./js.rs:24:34
|
24 | arg1: root::JS::JSWhyMagic);
| ^^^^^^^^^^^^^^^^^^^^ undefined or not in scope
|
= help: no candidates by the name of `JSWhyMagic` found in your project; maybe you misspelled the name or forgot to import an external crate?
error[E0412]: type name `root::JS::JSWhyMagic` is undefined or not in scope
--> ./js.rs:31:46
|
31 | pub unsafe fn a(&mut self, arg1: root::JS::JSWhyMagic) {
| ^^^^^^^^^^^^^^^^^^^^ undefined or not in scope
|
= help: no candidates by the name of `JSWhyMagic` found in your project; maybe you misspelled the name or forgot to import an external crate?
error: aborting due to 2 previous errors
The text was updated successfully, but these errors were encountered:
Input:
Output with
--enable-cxx-namespaces
and--whitelist-type 'JS::Value'
:Compilation of output fails with:
The text was updated successfully, but these errors were encountered: