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
error[E0432]: unresolved import `alloc`
--> src/rust2c.rs:5:5
|
5 | use alloc::format;
| ^^^^^ did you mean `cstr_core::alloc`?
error: cannot determine resolution for the macro `format`
--> src/rust2c.rs:11:28
|
11 | let msg = CString::new(format!("HELLO! {}", x)).unwrap();
| ^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0432`.
error: Could not compile `krust`.
If I add extern crate alloc, then everything compiles just fine. Is this intentional?
The text was updated successfully, but these errors were encountered:
I am currently getting the following error:
If I add
extern crate alloc
, then everything compiles just fine. Is this intentional?The text was updated successfully, but these errors were encountered: