Closed
Description
I typed #[marco_use]
instead of correct #[macro_use]
in file, but the compiler report can not find macro xxx in this scope.
extern crate iron;
#[marco_use] extern crate mime;
and the error message is
error: cannot find macro `mime!` in this scope
--> src/main.rs:15:22
|
15 | response.set_mut(mime!(Text/Html; Charset=Utf8));
| ^^^^
I think compiler should directly report marco_use is incorrect and should be macro_use.
##Meta
rustc 1.22.1 (05e2e1c 2017-11-22)
binary: rustc
commit-hash: 05e2e1c
commit-date: 2017-11-22
host: x86_64-unknown-linux-gnu
release: 1.22.1
LLVM version: 4.0
Metadata
Metadata
Assignees
Labels
No labels