-
Notifications
You must be signed in to change notification settings - Fork 22
Description
I'm trying to compile code from this article (https://codentium.com/guides/windows-dev/windows-drivers-in-rust-safe-framework/), however it gives me the following error even tho #![no_std]. I tried using code from github and i face the same error
error[E0152]: found duplicate lang item panic_impl--> C:\Users\zen\Desktop\drv_new\windows-kernel-rs\src\lib.rs:45:1 | 45 | / fn panic(_info: &core::panic::PanicInfo) -> ! { 46 | | loop {} 47 | | } | |_^ | = note: the lang item is first defined in cratestd(whichbitflagsdepends on) = note: first definition instd loaded from \\?\C:\Users\zen\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\libstd-ac24efe4baa6f4b5.rlib = note: second definition in the local crate (windows_kernel_rs`)
For more information about this error, try rustc --explain E0152.`