Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test_matrix example that does not compile in README #133

Merged
merged 1 commit into from
Oct 19, 2023

Conversation

ollien
Copy link
Contributor

@ollien ollien commented Oct 2, 2023

The current example in the README does not compile, I thought I'd adjust to an example that does :)

[~/Documents/code/test-case-example] nick@cubert$ cargo t
   Compiling tmp v0.1.0 (/home/nick/Documents/code/test-case-example)
error[E0428]: the name `_2_4_expects` is defined multiple times
  --> src/lib.rs:9:5
   |
9  | /     #[test_matrix(
10 | |         [-2, 2],
11 | |         [-4, 4]
12 | |     )]
   | |______^ `_2_4_expects` redefined here
   |
   = note: `_2_4_expects` must be defined only once in the value namespace of this module
   = note: this error originates in the attribute macro `test_matrix` (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try `rustc --explain E0428`.
error: could not compile `tmp` (lib test) due to previous error

@luke-biel luke-biel merged commit 97bcfc0 into frondeus:master Oct 19, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants