code is inactive due to #[cfg] directives: test is enabledrust-analyzerinactive-code
found duplicate lang item panic_impl
the lang item is first defined in crate std (which binbows depends on)
first definition in std loaded from /home/gavin/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-182371ab76f58e7c.rlib
second definition in the local crate (binbows)
i keep getting duplicate lang item but i donnt know how to fix it
#getting duplicate item while trying to make a nos
5 messages · Page 1 of 1 (latest)
It looks like this is a rust-analyzer error. First, see if you also get an error with the actual compiler, and if so, show that error
Also
-errors
Run cargo check in a terminal
Note: If using rust analyzer you can click the "click for full compiler diagnostic" link in your editor.
Please post the full output of the above command, including the error title and any help or notes. An example of how this looks is:
error[E0308]: mismatched types
--> src/main.rs:3:17
|
3 | let foo: &i32 = bar;
| ---- ^^^ expected `&i32`, found integer
| |
| expected due to this
|
help: consider borrowing here
|
3 | let foo: &i32 = &bar;
| +
When posting the error put it in a code block so it has nice formatting:
`[0m`[0m`rust
// error from cargo check here
`[0m`[0m`
Please do not post a screenshot. If the output is too long then use a paste tool like https://paste.rs/web