-
Notifications
You must be signed in to change notification settings - Fork 3
Description
rust-quickjs d$ cargo run --example qjs
Compiling qjs v0.1.2 (/Users/d/test/rust-quickjs/rust-quickjs)
error[E0599]: no method named as_ptr found for type &cfile::cfile::CFileRef in the current scope
--> examples/qjs.rs:310:54
|
310 | ffi::JS_DumpMemoryUsage(cfile::stdout()?.as_ptr() as *mut _, &stats, rt.as_ptr())
| ^^^^^^ method not found in &cfile::cfile::CFileRef
|
= help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope, perhaps add a use for it:
|
6 | use foreign_types_shared::ForeignTypeRef;
|
error: aborting due to previous error
For more information about this error, try rustc --explain E0599.
error: could not compile qjs.
To learn more, run the command again with --verbose.