rust/src/test/ui/issues/issue-49074.rs
Vadim Petrochenkov fff01ccfa8 Do not abort compilation if expansion produces errors
Fix a number of uncovered deficiencies in diagnostics
2018-12-27 15:51:36 +03:00

14 lines
314 B
Rust

// Check that unknown attribute error is shown even if there are unresolved macros.
#[marco_use] // typo
//~^ ERROR The attribute `marco_use` is currently unknown to the compiler
mod foo {
macro_rules! bar {
() => ();
}
}
fn main() {
bar!(); //~ ERROR cannot find macro `bar!` in this scope
}