Skip to content

Error explanation suggests using #![no_std] when already in use #28352

Closed
@klieth

Description

@klieth

I've been running into a linker error undefined reference to 'panicking::panic::h98aad983367da335F7E' while trying to build with #![no_std]. While trying to debug, I ended up with some code that looked like this:

https://gist.github.com/anonymous/88c01ee6ee33e4bad656

When you try to compile, it fails saying that "panic" is a duplicate definition. This makes sense because it's defined in libcore, but the error explanation suggests that this is possible, and the correct way to to do it is to use #![no_std], which I'm already doing.

Seems like either a problem with the library or with the error explanation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lints

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions