mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
12 lines
273 B
Rust
12 lines
273 B
Rust
// Ambiguity between a `macro_rules` macro and a non-existent import recovered as `Res::Err`
|
|
|
|
macro_rules! mac { () => () }
|
|
|
|
mod m {
|
|
use nonexistent_module::mac; //~ ERROR unresolved import `nonexistent_module`
|
|
|
|
mac!(); //~ ERROR `mac` is ambiguous
|
|
}
|
|
|
|
fn main() {}
|