From 218caa410aa38c29984be31a5229b9fa717560ee Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:13 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- tests/ui/imports/macro-paths.rs | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 tests/ui/imports/macro-paths.rs (limited to 'tests/ui/imports/macro-paths.rs') diff --git a/tests/ui/imports/macro-paths.rs b/tests/ui/imports/macro-paths.rs new file mode 100644 index 000000000..cc584e05a --- /dev/null +++ b/tests/ui/imports/macro-paths.rs @@ -0,0 +1,28 @@ +// aux-build:two_macros.rs + +extern crate two_macros; + +mod foo { + pub mod bar { + pub use two_macros::m; + } +} + +fn f() { + use foo::*; + bar::m! { //~ ERROR ambiguous + mod bar { pub use two_macros::m; } + } +} + +pub mod baz { + pub use two_macros::m; +} + +fn g() { + baz::m! { //~ ERROR ambiguous + mod baz { pub use two_macros::m; } + } +} + +fn main() {} -- cgit v1.2.3