You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not sure if this is possible, given how this macro is being used, but I got confused when
my tests would only compile when I had set $crate[ref] to mock.
#[cfg(test)] #[macro_use]
extern crate yup_hyper_mock as mock;
Here is the error when the above was not set:
<mocks macros>:11:1: 11:5 error: failed to resolve. Maybe a missing `extern crate mock`?
<mocks macros>:11 :: mock:: MockStream {
^~~~
<mocks macros>:1:1: 14:68 note: in expansion of mock_connector!
src/lib.rs:66:5: 76:8 note: expansion site
<mocks macros>:11:1: 11:21 error: `mock::MockStream` does not name a structure
<mocks macros>:11 :: mock:: MockStream {
^~~~~~~~~~~~~~~~~~~~
<mocks macros>:1:1: 14:68 note: in expansion of mock_connector!
src/lib.rs:66:5: 76:8 note: expansion site
error: aborting due to 2 previous errors
Thanks!
The text was updated successfully, but these errors were encountered:
I am not sure if this is possible, given how this macro is being used, but I got confused when
my tests would only compile when I had set
$crate
[ref] tomock
.Here is the error when the above was not set:
Thanks!
The text was updated successfully, but these errors were encountered: