summaryrefslogtreecommitdiffstats
path: root/tests/ui/imports/ambiguous-16.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/imports/ambiguous-16.rs27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/ui/imports/ambiguous-16.rs b/tests/ui/imports/ambiguous-16.rs
new file mode 100644
index 000000000..e51e30e3e
--- /dev/null
+++ b/tests/ui/imports/ambiguous-16.rs
@@ -0,0 +1,27 @@
+// check-pass
+// https://github.com/rust-lang/rust/pull/113099
+
+mod framing {
+ mod public_message {
+ use super::*;
+
+ #[derive(Debug)]
+ pub struct ConfirmedTranscriptHashInput;
+ }
+
+ mod public_message_in {
+ use super::*;
+
+ #[derive(Debug)]
+ pub struct ConfirmedTranscriptHashInput;
+ }
+
+ pub use self::public_message::*;
+ pub use self::public_message_in::*;
+}
+
+use crate::framing::ConfirmedTranscriptHashInput;
+//~^ WARNING `ConfirmedTranscriptHashInput` is ambiguous
+//~| WARNING this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
+
+fn main() { }