Closed
Description
Problem
I ran cargo test
and saw:
Compiling moria v0.1.0 (/Users/bjorn/Documents/moria)
error: expected one of `;` or `{`, found `#`
error: expected one of `;` or `{`, found `#`
--> src/lib.rs:42:1
|
--> src/lib.rs:42:1
40 | mod dsym
|
40 | mod dsym
| - expected one of `;` or `{` here
| - expected one of `;` or `{` here
41 |
42 | #[cfg(not(target_os="macos"))]
| ^ unexpected token
41 |
42 | #[cfg(not(target_os="macos"))]
| ^ unexpected token
error: aborting due to previous error
error: aborting due to previous error
error: Could not compile `moria`.
warning: build failed, waiting for other jobs to finish...
error: Could not compile `moria`.
To learn more, run the command again with --verbose.
Steps
- Add an error (eg syntax error) to a rust file.
- Run
cargo test
Possible Solution(s)
Notes
Output of cargo version
: cargo 1.33.0 (f099fe94b 2019-02-12)
$ uname
Darwin