diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:03 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:03 +0000 |
commit | 64d98f8ee037282c35007b64c2649055c56af1db (patch) | |
tree | 5492bcf97fce41ee1c0b1cc2add283f3e66cdab0 /tests/ui/imports/issue-53269.stderr | |
parent | Adding debian version 1.67.1+dfsg1-1. (diff) | |
download | rustc-64d98f8ee037282c35007b64c2649055c56af1db.tar.xz rustc-64d98f8ee037282c35007b64c2649055c56af1db.zip |
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/ui/imports/issue-53269.stderr')
-rw-r--r-- | tests/ui/imports/issue-53269.stderr | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/ui/imports/issue-53269.stderr b/tests/ui/imports/issue-53269.stderr new file mode 100644 index 000000000..29c7556da --- /dev/null +++ b/tests/ui/imports/issue-53269.stderr @@ -0,0 +1,31 @@ +error[E0432]: unresolved import `nonexistent_module` + --> $DIR/issue-53269.rs:6:9 + | +LL | use nonexistent_module::mac; + | ^^^^^^^^^^^^^^^^^^ maybe a missing crate `nonexistent_module`? + | + = help: consider adding `extern crate nonexistent_module` to use the `nonexistent_module` crate + +error[E0659]: `mac` is ambiguous + --> $DIR/issue-53269.rs:8:5 + | +LL | mac!(); + | ^^^ ambiguous name + | + = note: ambiguous because of a conflict between a `macro_rules` name and a non-`macro_rules` name from another module +note: `mac` could refer to the macro defined here + --> $DIR/issue-53269.rs:3:1 + | +LL | macro_rules! mac { () => () } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +note: `mac` could also refer to the unresolved item imported here + --> $DIR/issue-53269.rs:6:9 + | +LL | use nonexistent_module::mac; + | ^^^^^^^^^^^^^^^^^^^^^^^ + = help: use `self::mac` to refer to this unresolved item unambiguously + +error: aborting due to 2 previous errors + +Some errors have detailed explanations: E0432, E0659. +For more information about an error, try `rustc --explain E0432`. |