error[E0412]: cannot find type `T` in this scope: bug_divan(bench)
--> benches/bug_divan.rs:4:18
|
4 | fn f<T>((x, y): (T,T)) -> (T,T)
| ^ not found in this scope
error[E0412]: cannot find type `T` in this scope
--> benches/bug_divan.rs:4:20
|
4 | fn f<T>((x, y): (T,T)) -> (T,T)
| ^ not found in this scope
For more information about this error, try `rustc --explain E0412`.
error: could not compile `fe_cards` (bench "bug_divan") due to 2 previous errors
When the divan attribute above f is removed; the program compiles and runs. I'm sorry, I'm new to rust and macros are beyond my ken, so I can't offer any suggestions.
Anyway; thank you for divan and I liked your talk. At the moment, I'm exploring the performance of different combinatorial algorithm implementations and the effects of different primitive type choises. divan is a nice fit.
This code:
produces this error:
When the divan attribute above
f
is removed; the program compiles and runs. I'm sorry, I'm new to rust and macros are beyond my ken, so I can't offer any suggestions.Anyway; thank you for divan and I liked your talk. At the moment, I'm exploring the performance of different combinatorial algorithm implementations and the effects of different primitive type choises. divan is a nice fit.