summaryrefslogtreecommitdiffstats
path: root/tests/ui/imports/issue-53269.rs
blob: 1031d507101de2d734637cf4e97cc4f0f8fd9609 (plain)
1
2
3
4
5
6
7
8
9
10
11
// 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() {}