Skip to content

Commit

Permalink
Merge pull request #1340 from Fincap/patch-1
Browse files Browse the repository at this point in the history
04-testing: Added panic-abort-tests flag note to "duplicate lang item" workaround
  • Loading branch information
phil-opp authored Aug 26, 2024
2 parents 94f1c45 + 9a60392 commit e4dd739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blog/content/edition-2/posts/04-testing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ When we run `cargo test` now, we see that it now succeeds (if it doesn't, see th

<div class = "warning">

**Note:** There is currently a bug in cargo that leads to "duplicate lang item" errors on `cargo test` in some cases. It occurs when you have set `panic = "abort"` for a profile in your `Cargo.toml`. Try removing it, then `cargo test` should work. See the [cargo issue](https://github.com/rust-lang/cargo/issues/7359) for more information on this.
**Note:** There is currently a bug in cargo that leads to "duplicate lang item" errors on `cargo test` in some cases. It occurs when you have set `panic = "abort"` for a profile in your `Cargo.toml`. Try removing it, then `cargo test` should work. Alternatively, if that doesn't work, then add `panic-abort-tests = true` to the `[unstable]` section of your `.config/cargo.toml` file. See the [cargo issue](https://github.com/rust-lang/cargo/issues/7359) for more information on this.

</div>

Expand Down

0 comments on commit e4dd739

Please sign in to comment.