-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
A-cache-messagesArea: caching of compiler messagesArea: caching of compiler messagesA-console-outputArea: Terminal output, colors, progress bar, etc.Area: Terminal output, colors, progress bar, etc.C-bugCategory: bugCategory: bug
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
Metadata
Metadata
Assignees
Labels
A-cache-messagesArea: caching of compiler messagesArea: caching of compiler messagesA-console-outputArea: Terminal output, colors, progress bar, etc.Area: Terminal output, colors, progress bar, etc.C-bugCategory: bugCategory: bug