lipanski / mockito

HTTP mocking for Rust!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

expected item after attributes

opened this issue · comments

I am trying to use the basic example from the library when I add the

#[cfg(not(test))]
let url = "https://api.twitter.com";

I get the error:

error: expected item after attributes
 --> src/learn/mod.rs:9:1
  |
9 | #[cfg(not(test))]