Skip to content

Error messages from rustc interleaved #6848

Closed
@bjorn3

Description

@bjorn3

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

  1. Add an error (eg syntax error) to a rust file.
  2. 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 messagesA-console-outputArea: Terminal output, colors, progress bar, etc.C-bugCategory: bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions