mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
14 lines
298 B
Rust
14 lines
298 B
Rust
// Check that unknown attribute error is shown even if there are unresolved macros.
|
|
|
|
#[marco_use] // typo
|
|
//~^ ERROR cannot find attribute `marco_use` in this scope
|
|
mod foo {
|
|
macro_rules! bar {
|
|
() => ();
|
|
}
|
|
}
|
|
|
|
fn main() {
|
|
bar!(); //~ ERROR cannot find macro `bar` in this scope
|
|
}
|