2018-03-16 02:53:40 -05:00
|
|
|
// Check that unknown attribute error is shown even if there are unresolved macros.
|
|
|
|
|
|
|
|
#[marco_use] // typo
|
2019-09-15 04:55:18 -05:00
|
|
|
//~^ ERROR cannot find attribute `marco_use` in this scope
|
2018-03-16 02:53:40 -05:00
|
|
|
mod foo {
|
|
|
|
macro_rules! bar {
|
|
|
|
() => ();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
2018-12-16 11:23:27 -06:00
|
|
|
bar!(); //~ ERROR cannot find macro `bar!` in this scope
|
2018-03-16 02:53:40 -05:00
|
|
|
}
|