]> git.lizzy.rs Git - rust.git/blob - src/test/ui/imports/issue-53269.rs
Sync portable-simd to rust-lang/portable-simd@72df4c45056a8bc0d1b3f06fdc828722177f0763
[rust.git] / src / test / ui / imports / issue-53269.rs
1 // Ambiguity between a `macro_rules` macro and a non-existent import recovered as `Res::Err`
2
3 macro_rules! mac { () => () }
4
5 mod m {
6     use nonexistent_module::mac; //~ ERROR unresolved import `nonexistent_module`
7
8     mac!(); //~ ERROR `mac` is ambiguous
9 }
10
11 fn main() {}