-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Description
Running cargo check --tests on https://github.com/nickel-org/nickel.rs unexpectedly can't find macros. However, cargo test --all compiles fine.
warning: unused
#[macro_use]import
--> examples/https.rs:1:1
|
1 | #[macro_use] extern crate nickel;
| ^^^^^^^^^^^^
|
= note: #[warn(unused_imports)] on by default
error: cannot find macro
middleware!in this scope
--> examples/integration_testing.rs:90:22
|
90 | server.post("/", middleware! { |req, res|
| ^^^^^^^^^^
error: cannot find macro
lazy_static!in this scope
--> examples/integration_testing.rs:279:9
|
279 | lazy_static! {
| ^^^^^^^^^^^
cargo check --testsfails to compile examplescargo check --examplesdoes compile examples, but with warningscargo build --examplescompiles examples without warnings
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels