error[E0433]: failed to resolve: unresolved import
--> src/main.rs:4:18
|
4 | unsafe { syscall!("NtClose", -1) };
| ^^^^^^^^^^^^^^^^^^^^^^^
| |
| unresolved import
| help: a similar path exists: `rust_syscalls::syscall`
|
= note: this error originates in the macro `syscall` (in Nightly builds, run with -Z macro-backtrace for more info)
For more information about this error, try `rustc --explain E0433`.
crate
to$crate
to always refer to therust_syscalls
crate. Fixesunresolved import
s when used in submodules. Example:Results in: