summaryrefslogtreecommitdiffstats
path: root/tests/ui/rust-2018/uniform-paths/macro-rules.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
commit218caa410aa38c29984be31a5229b9fa717560ee (patch)
treec54bd55eeb6e4c508940a30e94c0032fbd45d677 /tests/ui/rust-2018/uniform-paths/macro-rules.stderr
parentReleasing progress-linux version 1.67.1+dfsg1-1~progress7.99u1. (diff)
downloadrustc-218caa410aa38c29984be31a5229b9fa717560ee.tar.xz
rustc-218caa410aa38c29984be31a5229b9fa717560ee.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/ui/rust-2018/uniform-paths/macro-rules.stderr')
-rw-r--r--tests/ui/rust-2018/uniform-paths/macro-rules.stderr35
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/ui/rust-2018/uniform-paths/macro-rules.stderr b/tests/ui/rust-2018/uniform-paths/macro-rules.stderr
new file mode 100644
index 000000000..9f8c928c3
--- /dev/null
+++ b/tests/ui/rust-2018/uniform-paths/macro-rules.stderr
@@ -0,0 +1,35 @@
+error[E0364]: `legacy_macro` is only public within the crate, and cannot be re-exported outside
+ --> $DIR/macro-rules.rs:11:13
+ |
+LL | pub use legacy_macro as _;
+ | ^^^^^^^^^^^^^^^^^
+ |
+help: consider adding a `#[macro_export]` to the macro in the imported module
+ --> $DIR/macro-rules.rs:7:5
+ |
+LL | macro_rules! legacy_macro { () => () }
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+error[E0659]: `legacy_macro` is ambiguous
+ --> $DIR/macro-rules.rs:31:13
+ |
+LL | use legacy_macro as _;
+ | ^^^^^^^^^^^^ ambiguous name
+ |
+ = note: ambiguous because of multiple potential import sources
+note: `legacy_macro` could refer to the macro defined here
+ --> $DIR/macro-rules.rs:28:9
+ |
+LL | macro_rules! legacy_macro { () => () }
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+note: `legacy_macro` could also refer to the macro defined here
+ --> $DIR/macro-rules.rs:25:5
+ |
+LL | macro legacy_macro() {}
+ | ^^^^^^^^^^^^^^^^^^^^^^^
+ = help: use `self::legacy_macro` to refer to this macro unambiguously
+
+error: aborting due to 2 previous errors
+
+Some errors have detailed explanations: E0364, E0659.
+For more information about an error, try `rustc --explain E0364`.