Skip to content

Compiler gives an error "found duplicate lang item 'panic impl' #13

Description

@And329

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.`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions