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