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-07-11 17:00:20 -05:00
|
|
|
//~^ ERROR cannot find attribute macro `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
|
|
|
}
|