okay, having another crack at benchmarking, still getting "use of unstable library feature 'test': `bench` is a part of custom test frameworks which are unstable" even though this module begins with `#![feature(test)] ; extern crate test`
-
Show this thread
-
I'm using cargo 1.40.0-nightly which I updated this morning
1 reply 0 retweets 1 likeShow this thread -
here's all my code: src/lib.rs: #[cfg(test)] mod benches; src/benches.rs: #![feature(test)] extern crate test; use super::*; #[bench] fn do_bench(b: &mut test::Bencher) {}
1 reply 0 retweets 1 likeShow this thread -
really unsure why this won't compile
3 replies 0 retweets 1 likeShow this thread
Replying to @mountain_ghosts
#![feature] has to go in the crate root, not a module
7:02 AM - 7 Nov 2019
0 replies
0 retweets
2 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.