Skip to content

"note: this error originates in a macro from the standard library" but it's just an extern crate #36469

Closed
@durka

Description

@durka

I created two crates, exported a macro from one to the other, and invoked the macro in the latter. The macro expands to code that doesn't compile. The error is:

error[E0425]: unresolved name `Wrong`
 --> src/lib.rs:6:9
  |
6 |         a!();
  |         ^^^^^
  |
  = note: this error originates in a macro from the standard library

error: aborting due to previous error

error: Could not compile `b`.

But the macro isn't in the standard library; rather it's in a crate that I imported.

rustc 1.13.0-nightly (923bac459 2016-09-06)
binary: rustc
commit-hash: 923bac45964940c56ab1075fb7980896de1eb620
commit-date: 2016-09-06
host: x86_64-apple-darwin
release: 1.13.0-nightly

cc @jonathandturner

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions