2019-04-20 11:36:05 -05:00
|
|
|
// Ambiguity between a `macro_rules` macro and a non-existent import recovered as `Res::Err`
|
2018-08-17 18:38:51 -05:00
|
|
|
|
|
|
|
macro_rules! mac { () => () }
|
|
|
|
|
|
|
|
mod m {
|
|
|
|
use nonexistent_module::mac; //~ ERROR unresolved import `nonexistent_module`
|
|
|
|
|
|
|
|
mac!(); //~ ERROR `mac` is ambiguous
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|